commit | fcc93d2c0aece88c79648be3b76f98ee9e29e826 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Thu Jan 31 00:51:24 2002 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Thu Jan 31 00:51:24 2002 +0000 |
tree | d20b7580095741586fa7ec66ef4d10e029d8978b | |
parent | fb1b3f119df25de495fcd53e675d6c9991f5664e [diff] [blame] |
MethodPass's are now guaranteed to not be run on external methods! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1611 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Instrumentation/TraceValues.cpp b/lib/Transforms/Instrumentation/TraceValues.cpp index c778ca8..aad63c8 100644 --- a/lib/Transforms/Instrumentation/TraceValues.cpp +++ b/lib/Transforms/Instrumentation/TraceValues.cpp
@@ -242,7 +242,7 @@ bool InsertTraceCode::doit(Method *M, bool traceBasicBlockExits, bool traceMethodEvents, Method *Printf) { - if (M->isExternal() || (!traceBasicBlockExits && !traceMethodEvents)) + if (!traceBasicBlockExits && !traceMethodEvents) return false; vector<Instruction*> valuesStoredInMethod;