summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Driver.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2013-09-05 17:05:56 +0000
committerHans Wennborg <hans@hanshq.net>2013-09-05 17:05:56 +0000
commit0a096a0a3b166de80a4caaff2f64b508cffcd057 (patch)
tree1adf08af92ac337728025442f77cc977a3b368ce /clang/lib/Driver/Driver.cpp
parent2a1eb4318d6e26a33244feaa9790cc9c3df642d0 (diff)
downloadbcm5719-llvm-0a096a0a3b166de80a4caaff2f64b508cffcd057.tar.gz
bcm5719-llvm-0a096a0a3b166de80a4caaff2f64b508cffcd057.zip
clang-cl: Use .obj as extension for unnamed object files (PR17095)
We already use .obj as extension when the user provides a stem file name (via /Fo), but were failing in the most basic case when the file name is based on the input file. llvm-svn: 190071
Diffstat (limited to 'clang/lib/Driver/Driver.cpp')
-rw-r--r--clang/lib/Driver/Driver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index 87e1e2333fc..1f2915ae32f 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -1670,7 +1670,7 @@ const char *Driver::GetNamedOutputPath(Compilation &C,
} else
NamedOutput = DefaultImageName.c_str();
} else {
- const char *Suffix = types::getTypeTempSuffix(JA.getType());
+ const char *Suffix = types::getTypeTempSuffix(JA.getType(), IsCLMode());
assert(Suffix && "All types used for output should have a suffix.");
std::string::size_type End = std::string::npos;
OpenPOWER on IntegriCloud