Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1137)

Unified Diff: llvm/tools/llc/llc.cpp

Issue 10808021: Change LLVM bitcode linking to use tree reduction to scale better (Closed)
Patch Set: stuff Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « llvm/tools/gold/gold-plugin.cpp ('k') | llvm/tools/lto/LTOCodeGenerator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: llvm/tools/llc/llc.cpp
===================================================================
--- a/llvm/tools/llc/llc.cpp
+++ b/llvm/tools/llc/llc.cpp
@@ -710,10 +710,10 @@
// we have a NeededRecord for one of them.
// They may have been eliminated by the StripDeadPrototypes pass,
// or some other pass that is unaware of NeededRecords / IntrinsicLowering.
- IntrinsicLowering IL(*target->getTargetData());
- IL.AddPrototypes(*M);
+ if (!MetadataTextFilename.empty()) {
+ IntrinsicLowering IL(*target->getTargetData());
+ IL.AddPrototypes(*M);
- if (!MetadataTextFilename.empty()) {
int err = WriteTextMetadataFile(*M.get(), TheTriple);
if (err != 0)
return err;
« no previous file with comments | « llvm/tools/gold/gold-plugin.cpp ('k') | llvm/tools/lto/LTOCodeGenerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698