[llvm-commits] CVS: llvm/tools/llc/llc.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Feb 15 16:55:00 PST 2004
Changes in directory llvm/tools/llc:
llc.cpp updated: 1.90 -> 1.91
---
Log message:
When the user runs 'llc foo.bc -march=c', write the output to "foo.cbe.c", not
to "foo.s".
---
Diffs of the changes: (+5 -1)
Index: llvm/tools/llc/llc.cpp
diff -u llvm/tools/llc/llc.cpp:1.90 llvm/tools/llc/llc.cpp:1.91
--- llvm/tools/llc/llc.cpp:1.90 Fri Feb 13 17:19:09 2004
+++ llvm/tools/llc/llc.cpp Sun Feb 15 16:54:19 2004
@@ -164,7 +164,11 @@
Out = &std::cout;
} else {
OutputFilename = GetFileNameRoot(InputFilename);
- OutputFilename += ".s";
+
+ if (Arch != CBackend)
+ OutputFilename += ".s";
+ else
+ OutputFilename += ".cbe.c";
if (!Force && std::ifstream(OutputFilename.c_str())) {
// If force is not specified, make sure not to overwrite a file!
More information about the llvm-commits
mailing list