projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e42cde2
)
When the user runs 'llc foo.bc -march=c', write the output to "foo.cbe.c", not
author
Chris Lattner
<sabre@nondot.org>
Sun, 15 Feb 2004 22:54:19 +0000
(22:54 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 15 Feb 2004 22:54:19 +0000
(22:54 +0000)
to "foo.s".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11485
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/llc/llc.cpp
patch
|
blob
|
history
diff --git
a/tools/llc/llc.cpp
b/tools/llc/llc.cpp
index 24a3a35fc8230b7dbe2bb9b3f84448f48d735b7b..959bdbe36cbec178841434e50e51f5070177db30 100644
(file)
--- a/
tools/llc/llc.cpp
+++ b/
tools/llc/llc.cpp
@@
-164,7
+164,11
@@
int main(int argc, char **argv) {
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!