Add a dependency to the trace library so that it gets pulled in
authorAlkis Evlogimenos <alkis@evlogimenos.com>
Tue, 25 Jan 2005 16:23:57 +0000 (16:23 +0000)
committerAlkis Evlogimenos <alkis@evlogimenos.com>
Tue, 25 Jan 2005 16:23:57 +0000 (16:23 +0000)
automatically.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19828 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Instrumentation/TraceValues.cpp

index 2b1ed27c5484fc26f80b051e12bfca00da82bcb9..f645f1b451b0e2851102561174a3ee7df58e85cf 100644 (file)
@@ -118,9 +118,11 @@ FunctionPass *llvm::createTraceValuesPassForBasicBlocks() {
   return new BasicBlockTracer();
 }
 
-// Add a prototype for external functions used by the tracing code.
+// Add a prototype for external functions used by the tracing code and require
+// the trace library for this module.
 //
 void ExternalFuncs::doInitialization(Module &M) {
+  M.addLibrary("trace");
   const Type *SBP = PointerType::get(Type::SByteTy);
   const FunctionType *MTy =
     FunctionType::get(Type::IntTy, std::vector<const Type*>(1, SBP), true);