[llvm-commits] [llvm] r77914 - /llvm/trunk/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp

Nick Lewycky nicholas at mxc.ca
Sun Aug 2 13:51:45 PDT 2009


Author: nicholas
Date: Sun Aug  2 15:51:44 2009
New Revision: 77914

URL: http://llvm.org/viewvc/llvm-project?rev=77914&view=rev
Log:
Fix the build for people with oprofile installed.

Modified:
    llvm/trunk/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp

Modified: llvm/trunk/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp?rev=77914&r1=77913&r2=77914&view=diff

==============================================================================
--- llvm/trunk/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp Sun Aug  2 15:51:44 2009
@@ -22,6 +22,7 @@
 #include "llvm/CodeGen/MachineFunction.h"
 #include "llvm/ExecutionEngine/JITEventListener.h"
 #include "llvm/Support/Debug.h"
+#include "llvm/Support/raw_ostream.h"
 #include "llvm/System/Errno.h"
 #include "llvm/Config/config.h"
 #include <stddef.h>
@@ -112,7 +113,7 @@
                            reinterpret_cast<uint64_t>(FnStart),
                            FnStart, FnSize) == -1) {
     DEBUG(errs() << "Failed to tell OProfile about native function " 
-          << Fn.getName() << " at [" 
+          << F.getName() << " at [" 
           << FnStart << "-" << ((char*)FnStart + FnSize) << "]\n");
     return;
   }
@@ -152,8 +153,8 @@
     const Function &F, void *FnStart) {
   assert(FnStart && "Invalid function pointer");
   if (op_unload_native_code(Agent, reinterpret_cast<uint64_t>(FnStart)) == -1) {
-    DOUT << "Failed to tell OProfile about unload of native function "
-         << F.getName() << " at " << FnStart << "\n";
+    DEBUG(errs() << "Failed to tell OProfile about unload of native function "
+                 << F.getName() << " at " << FnStart << "\n");
   }
 }
 





More information about the llvm-commits mailing list