зеркало из https://github.com/microsoft/clang-1.git
Simplify (move guard to caller instead of callee).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84325 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
f77869ffdf
Коммит
8b88ca68e2
|
@ -1139,9 +1139,6 @@ isysroot("isysroot", llvm::cl::value_desc("dir"), llvm::cl::init("/"),
|
|||
|
||||
// Add the clang headers, which are relative to the clang binary.
|
||||
void AddClangIncludePaths(const char *Argv0, InitHeaderSearch *Init) {
|
||||
if (nostdclanginc)
|
||||
return;
|
||||
|
||||
llvm::sys::Path MainExecutablePath =
|
||||
llvm::sys::Path::GetMainExecutable(Argv0,
|
||||
(void*)(intptr_t)AddClangIncludePaths);
|
||||
|
@ -1243,7 +1240,8 @@ void InitializeIncludePaths(const char *Argv0, HeaderSearch &Headers,
|
|||
|
||||
Init.AddDefaultEnvVarPaths(Lang);
|
||||
|
||||
AddClangIncludePaths(Argv0, &Init);
|
||||
if (!nostdclanginc)
|
||||
AddClangIncludePaths(Argv0, &Init);
|
||||
|
||||
if (!nostdinc)
|
||||
Init.AddDefaultSystemIncludePaths(Lang, triple);
|
||||
|
|
Загрузка…
Ссылка в новой задаче