Don't support codegen passes in opt

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5797 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-04-16 23:02:16 +00:00
parent f5653226b5
commit 0af1e8e3a4

View File

@ -125,8 +125,10 @@ int main(int argc, char **argv) {
else if (Opt->getDataCtor())
Passes.add(Opt->getDataCtor()(TD)); // Provide dummy target data...
else if (Opt->getTargetCtor()) {
#if 0
if (target.get() == NULL)
target.reset(allocateSparcTargetMachine()); // FIXME: target option
#endif
assert(target.get() && "Could not allocate target machine!");
Passes.add(Opt->getTargetCtor()(*target.get()));
} else