diff options
Diffstat (limited to 'lib/System/Path.cpp')
-rw-r--r-- | lib/System/Path.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/System/Path.cpp b/lib/System/Path.cpp index d0ee1a3ae8..1c2b00e645 100644 --- a/lib/System/Path.cpp +++ b/lib/System/Path.cpp @@ -23,6 +23,14 @@ using namespace sys; //=== independent code. //===----------------------------------------------------------------------===// +Path +Path::GetLLVMConfigDir() { + Path result; + if (result.setDirectory(LLVM_ETCDIR)) + return result; + return GetLLVMDefaultConfigDir(); +} + LLVMFileType sys::IdentifyFileType(const char*magic, unsigned length) { assert(magic && "Invalid magic number string"); |