1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

target constructors are never used

llvm-svn: 32099
This commit is contained in:
Chris Lattner 2006-12-01 21:59:37 +00:00
parent bf13611e84
commit 679e419c6b
2 changed files with 2 additions and 8 deletions

View File

@ -177,10 +177,7 @@ void Optimize(Module* M) {
const PassInfo *Opt = OptimizationList[i];
if (Opt->getNormalCtor())
addPass(Passes, Opt->getNormalCtor()());
else if (Opt->getTargetCtor()) {
assert(target.get() && "Could not allocate target machine!");
addPass(Passes, Opt->getTargetCtor()(*target.get()));
} else
else
std::cerr << "llvm-ld: cannot create pass: " << Opt->getPassName()
<< "\n";
}

View File

@ -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) {