From 7b2c95f7bc6914f273ddf0f8f26734d12b3a3b2f Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Sun, 3 Aug 2014 15:26:48 +0200 Subject: [PATCH] Use the file lookup using the include paths to resolve filenames. --- tools/driver/cling.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/driver/cling.cpp b/tools/driver/cling.cpp index 898f7f04..8641b475 100644 --- a/tools/driver/cling.cpp +++ b/tools/driver/cling.cpp @@ -53,7 +53,7 @@ int main( int argc, char **argv ) { if (!Interactive) { for (size_t I = 0, N = Inputs.size(); I < N; ++I) { std::string line; - if (llvm::sys::fs::exists(Inputs[I])) + if (!interp.lookupFileOrLibrary(Inputs[I]).empty()) line += ".x "; line += Inputs[I];