[PATCH] Support for saving an ordered list of compilation units
Kostya Serebryany
kcc at google.com
Tue Feb 17 16:21:35 PST 2015
================
Comment at: lib/Transforms/Instrumentation/SanitizerCoverage.cpp:195
@@ +194,3 @@
+ // Create variable for module (compilation unit) name
+ ArrayType *Int8ArrayNTy =
+ ArrayType::get(IRB.getInt8Ty(), M.getName().size() + 1);
----------------
you can do this shorter, similar to createPrivateNonConstGlobalForString in MemorySanitizer.cpp
http://reviews.llvm.org/D7702
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list