aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Instrumentation/TraceValues.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-01-31 00:51:24 +0000
committerChris Lattner <sabre@nondot.org>2002-01-31 00:51:24 +0000
commitfcc93d2c0aece88c79648be3b76f98ee9e29e826 (patch)
treed20b7580095741586fa7ec66ef4d10e029d8978b /lib/Transforms/Instrumentation/TraceValues.cpp
parentfb1b3f119df25de495fcd53e675d6c9991f5664e (diff)
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
Diffstat (limited to 'lib/Transforms/Instrumentation/TraceValues.cpp')
-rw-r--r--lib/Transforms/Instrumentation/TraceValues.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Instrumentation/TraceValues.cpp b/lib/Transforms/Instrumentation/TraceValues.cpp
index c778ca8b0d..aad63c848f 100644
--- a/lib/Transforms/Instrumentation/TraceValues.cpp
+++ b/lib/Transforms/Instrumentation/TraceValues.cpp
@@ -242,7 +242,7 @@ static inline void InsertCodeToShowMethodExit(BasicBlock *BB, Method *Printf) {
bool InsertTraceCode::doit(Method *M, bool traceBasicBlockExits,
bool traceMethodEvents, Method *Printf) {
- if (M->isExternal() || (!traceBasicBlockExits && !traceMethodEvents))
+ if (!traceBasicBlockExits && !traceMethodEvents)
return false;
vector<Instruction*> valuesStoredInMethod;