diff options
author | Alkis Evlogimenos <alkis@evlogimenos.com> | 2005-01-25 16:23:57 +0000 |
---|---|---|
committer | Alkis Evlogimenos <alkis@evlogimenos.com> | 2005-01-25 16:23:57 +0000 |
commit | 193904a6633e9919e5d426123de3133028196821 (patch) | |
tree | 05d5773e772cb6896faf742b92724d05880ef380 /lib/Transforms/Instrumentation/TraceValues.cpp | |
parent | 9846a345d5351f70191634ca1ff983871d39b85b (diff) |
Add a dependency to the trace library so that it gets pulled in
automatically.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19828 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Instrumentation/TraceValues.cpp')
-rw-r--r-- | lib/Transforms/Instrumentation/TraceValues.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Transforms/Instrumentation/TraceValues.cpp b/lib/Transforms/Instrumentation/TraceValues.cpp index 2b1ed27c54..f645f1b451 100644 --- a/lib/Transforms/Instrumentation/TraceValues.cpp +++ b/lib/Transforms/Instrumentation/TraceValues.cpp @@ -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); |