From cd950a5308916f75e0faa6747151338750791fd7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 1 Dec 2006 21:59:37 +0000 Subject: target constructors are never used git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32099 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/opt/opt.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'tools/opt/opt.cpp') diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index c552d69..d0accb5 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -224,10 +224,7 @@ int main(int argc, char **argv) { Pass *P = 0; if (PassInf->getNormalCtor()) P = PassInf->getNormalCtor()(); - else if (PassInf->getTargetCtor()) { - assert(target.get() && "Could not allocate target machine!"); - P = PassInf->getTargetCtor()(*target.get()); - } else + else llvm_cerr << argv[0] << ": cannot create pass: " << PassInf->getPassName() << "\n"; if (P) { -- cgit v1.1