summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/IRObjectFile.cpp
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-11-09 01:45:13 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-11-09 01:45:13 +0000
commitb6a11a78794b196cf8cda59d584cbe0d3243c06b (patch)
tree74cf2737ddc2774f124f18691a3bf8050c9b12ef /llvm/lib/Object/IRObjectFile.cpp
parent0695e5b916c8d4196fd586ce3a08a87f182fae44 (diff)
downloadbcm5719-llvm-b6a11a78794b196cf8cda59d584cbe0d3243c06b.tar.gz
bcm5719-llvm-b6a11a78794b196cf8cda59d584cbe0d3243c06b.zip
Revert "[ThinLTO] Prevent exporting of locals used/defined in module level asm"
This reverts commit r286297. Introduces a dependency from libAnalysis to libObject, which I missed during the review. llvm-svn: 286329
Diffstat (limited to 'llvm/lib/Object/IRObjectFile.cpp')
-rw-r--r--llvm/lib/Object/IRObjectFile.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Object/IRObjectFile.cpp b/llvm/lib/Object/IRObjectFile.cpp
index d9474b94b30..8769f8fe54a 100644
--- a/llvm/lib/Object/IRObjectFile.cpp
+++ b/llvm/lib/Object/IRObjectFile.cpp
@@ -54,7 +54,8 @@ void IRObjectFile::CollectAsmUndefinedRefs(
std::string Err;
const Target *T = TargetRegistry::lookupTarget(TT.str(), Err);
- assert(T && T->hasMCAsmParser());
+ if (!T)
+ return;
std::unique_ptr<MCRegisterInfo> MRI(T->createMCRegInfo(TT.str()));
if (!MRI)
OpenPOWER on IntegriCloud