Add a warning.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27795 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-04-18 05:31:20 +00:00
parent 6a58e0e144
commit 8b57ff75be

View File

@ -216,6 +216,9 @@ int main(int argc, char **argv) {
sys::RemoveFileOnSignal(sys::Path(OutputFilename));
}
}
if (FileType != TargetMachine::AssemblyFile)
std::cerr << "WARNING: only -filetype=asm is currently supported.\n";
// Ask the target to add backend passes as necessary.
if (Target.addPassesToEmitFile(Passes, *Out, FileType, Fast)) {