mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-11 13:44:28 +00:00
target constructors are never used
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32099 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ba59a1e453
commit
cd950a5308
@ -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";
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user