[llvm-commits] CVS: reopt/lib/LightWtProfiling/SecondTrigger.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Fri Jun 25 01:09:20 PDT 2004
Changes in directory reopt/lib/LightWtProfiling:
SecondTrigger.cpp updated: 1.29 -> 1.30
---
Log message:
If we don't have libcpc.h, provide the prototype inline. This could
reasonably be handled by the reopt/configure script, maybe, someday.
---
Diffs of the changes: (+6 -1)
Index: reopt/lib/LightWtProfiling/SecondTrigger.cpp
diff -u reopt/lib/LightWtProfiling/SecondTrigger.cpp:1.29 reopt/lib/LightWtProfiling/SecondTrigger.cpp:1.30
--- reopt/lib/LightWtProfiling/SecondTrigger.cpp:1.29 Tue Apr 27 13:34:45 2004
+++ reopt/lib/LightWtProfiling/SecondTrigger.cpp Fri Jun 25 01:07:26 2004
@@ -27,7 +27,12 @@
#include "reopt/TraceCache.h"
#include "reopt/VirtualMem.h"
#include <cassert>
-#include <libcpc.h>
+#if defined(__svr4__) && defined(__sparc__)
+# include <libcpc.h>
+#else
+// Just to make it compile...
+extern "C" int cpc_count_usr_events(int);
+#endif
namespace llvm {
More information about the llvm-commits
mailing list