aboutsummaryrefslogtreecommitdiffstats
path: root/tools/opt/opt.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-12-01 21:59:37 +0000
committerChris Lattner <sabre@nondot.org>2006-12-01 21:59:37 +0000
commitcd950a5308916f75e0faa6747151338750791fd7 (patch)
tree6c50da877c9c291537ffb3a56b3d8f75d27d0d2f /tools/opt/opt.cpp
parentba59a1e453e110f7b84233f07613f9c5d9a39b87 (diff)
downloadexternal_llvm-cd950a5308916f75e0faa6747151338750791fd7.zip
external_llvm-cd950a5308916f75e0faa6747151338750791fd7.tar.gz
external_llvm-cd950a5308916f75e0faa6747151338750791fd7.tar.bz2
target constructors are never used
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32099 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt/opt.cpp')
-rw-r--r--tools/opt/opt.cpp5
1 files changed, 1 insertions, 4 deletions
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) {