mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-12 12:33:17 +00:00
Add a dependency to the trace library so that it gets pulled in
automatically. llvm-svn: 19828
This commit is contained in:
parent
24fe4dbc5a
commit
eb6bfe9cee
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user