diff options
Diffstat (limited to 'llvm/lib/System/Path.cpp')
| -rw-r--r-- | llvm/lib/System/Path.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/System/Path.cpp b/llvm/lib/System/Path.cpp index d0ee1a3ae89..1c2b00e6456 100644 --- a/llvm/lib/System/Path.cpp +++ b/llvm/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"); |

