diff options
author | Chris Lattner <sabre@nondot.org> | 2002-01-31 00:51:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-01-31 00:51:24 +0000 |
commit | fcc93d2c0aece88c79648be3b76f98ee9e29e826 (patch) | |
tree | d20b7580095741586fa7ec66ef4d10e029d8978b /lib/Transforms/Instrumentation/TraceValues.cpp | |
parent | fb1b3f119df25de495fcd53e675d6c9991f5664e (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.cpp | 2 |
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; |