[llvm-commits] CVS: llvm/lib/Analysis/ProfileInfoLoader.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Tue May 4 12:11:06 PDT 2004
Changes in directory llvm/lib/Analysis:
ProfileInfoLoader.cpp updated: 1.5 -> 1.6
---
Log message:
Add stub support for reading BBTraces.
---
Diffs of the changes: (+16 -0)
Index: llvm/lib/Analysis/ProfileInfoLoader.cpp
diff -u llvm/lib/Analysis/ProfileInfoLoader.cpp:1.5 llvm/lib/Analysis/ProfileInfoLoader.cpp:1.6
--- llvm/lib/Analysis/ProfileInfoLoader.cpp:1.5 Tue May 4 11:53:07 2004
+++ llvm/lib/Analysis/ProfileInfoLoader.cpp Tue May 4 12:11:14 2004
@@ -123,6 +123,10 @@
ReadProfilingBlock(ToolName, F, ShouldByteSwap, EdgeCounts);
break;
+ case BBTraceInfo:
+ ReadProfilingBlock(ToolName, F, ShouldByteSwap, BBTrace);
+ break;
+
default:
std::cerr << ToolName << ": Unknown packet type #" << PacketType << "!\n";
exit(1);
@@ -257,3 +261,15 @@
return;
}
}
+
+// getBBTrace - This method is used by consumers of basic-block trace
+// information.
+//
+void ProfileInfoLoader::getBBTrace(std::vector<BasicBlock *> &Trace) {
+ if (BBTrace.empty ()) {
+ std::cerr << "Basic block trace is not available!\n";
+ return;
+ }
+ std::cerr << "Basic block trace loading is not implemented yet!\n";
+}
+
More information about the llvm-commits
mailing list