summaryrefslogtreecommitdiff
path: root/tools/llvmc/llvmc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/llvmc/llvmc.cpp')
-rw-r--r--tools/llvmc/llvmc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvmc/llvmc.cpp b/tools/llvmc/llvmc.cpp
index 40a91017f19..fe365058945 100644
--- a/tools/llvmc/llvmc.cpp
+++ b/tools/llvmc/llvmc.cpp
@@ -241,7 +241,7 @@ const std::string GetFileType(const std::string& fname, unsigned pos ) {
void handleTerminatingOptions(CompilerDriver* CD) {
if (!PrintFileName.empty()) {
sys::Path path = CD->GetPathForLinkageItem(PrintFileName,false);
- std::string p = path.get();
+ std::string p = path.toString();
if (p.empty())
std::cout << "Can't locate '" << PrintFileName << "'.\n";
else