[PATCH] D20541: [esan|cfrag]: Add createCacheFragGV.

Mike Aizatsky via llvm-commits llvm-commits at lists.llvm.org
Mon May 23 16:09:01 PDT 2016


aizatsky added inline comments.

================
Comment at: lib/Transforms/Instrumentation/EfficiencySanitizer.cpp:199
@@ +198,3 @@
+// Create the global variable for the cache-fragmentation tool.
+GlobalVariable *EfficiencySanitizer::createCacheFragGV(Module &M) {
+  assert(Options.ToolType == EfficiencySanitizerOptions::ESAN_CacheFrag);
----------------
What is the purpose for having different struct types for each tool? Is there a case where they are different or would it allways be "{ToolType, ModuleName}"?


http://reviews.llvm.org/D20541





More information about the llvm-commits mailing list