MethodPass's are now guaranteed to not be run on external methods!
[oota-llvm.git] / lib / Transforms / Instrumentation / TraceValues.cpp
index c778ca8b0dfc57255c2539ce6eb5a1448f2611ca..aad63c848f2b2284099ba59bcd7d7216c6aca841 100644 (file)
@@ -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;