[PATCH] D18736: [llvm-c] Improve IR Introspection: Add LLVM{Get, Set}ModuleIdentifier
Amaury SECHET via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 3 19:04:27 PDT 2016
deadalnix added inline comments.
================
Comment at: tools/llvm-c-test/echo.cpp:881
@@ -871,1 +880,3 @@
+ report_fatal_error("LLVM{Set,Get}ModuleIdentifier failed");
+ LLVMSetModuleIdentifier(M, ModuleName, strlen(ModuleName));
----------------
What happens if you read the module identifier from src and copy it to dst ? That would avoid having to hardcode a module name as it is done now.
http://reviews.llvm.org/D18736
More information about the llvm-commits
mailing list