From b6a11a78794b196cf8cda59d584cbe0d3243c06b Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Wed, 9 Nov 2016 01:45:13 +0000 Subject: 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 --- llvm/lib/Object/IRObjectFile.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib/Object/IRObjectFile.cpp') 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 MRI(T->createMCRegInfo(TT.str())); if (!MRI) -- cgit v1.2.3