diff options
author | Alex Brachet <abrachet@google.com> | 2023-02-10 19:41:43 +0000 |
---|---|---|
committer | Alex Brachet <abrachet@google.com> | 2023-02-10 19:42:32 +0000 |
commit | 3e57aa304f15a0821e5bcc90bd346529fed6658d (patch) | |
tree | 1727bc962c40bdf189914d75b359640d5707b966 /llvm/lib/Support/Path.cpp | |
parent | 1f173a0653e7f0c3800033edfa16ffe4c35cde85 (diff) | |
download | llvm-3e57aa304f15a0821e5bcc90bd346529fed6658d.zip llvm-3e57aa304f15a0821e5bcc90bd346529fed6658d.tar.gz llvm-3e57aa304f15a0821e5bcc90bd346529fed6658d.tar.bz2 |
[llvm-driver] Reinvoke clang as described by llvm driver extra args
Differential Revision: https://reviews.llvm.org/D137800
Diffstat (limited to 'llvm/lib/Support/Path.cpp')
-rw-r--r-- | llvm/lib/Support/Path.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/Support/Path.cpp b/llvm/lib/Support/Path.cpp index 152d902..d08d451 100644 --- a/llvm/lib/Support/Path.cpp +++ b/llvm/lib/Support/Path.cpp @@ -1202,18 +1202,10 @@ Error readNativeFileToEOF(file_t FileHandle, SmallVectorImpl<char> &Buffer, #include "Windows/Path.inc" #endif -bool IsLLVMDriver = false; - namespace llvm { namespace sys { namespace fs { -std::string getMainExecutable(const char *Argv0, void *MainAddr) { - if (IsLLVMDriver) - return sys::path::stem(Argv0).str(); - return getMainExecutableImpl(Argv0, MainAddr); -} - TempFile::TempFile(StringRef Name, int FD) : TmpName(std::string(Name)), FD(FD) {} TempFile::TempFile(TempFile &&Other) { *this = std::move(Other); } |