diff options
author | Adrian McCarthy <amccarth@google.com> | 2015-10-26 21:38:41 +0000 |
---|---|---|
committer | Adrian McCarthy <amccarth@google.com> | 2015-10-26 21:38:41 +0000 |
commit | 3f989d4e6e088d1630f716e279ea91c627a6de05 (patch) | |
tree | 7cfd673ef08a2f654f9582f00ae5a70d8675dcab /lldb/source/Target/Platform.cpp | |
parent | 298639a5fd6b8a7ce2360eb82e34bc1dc4c0ad82 (diff) | |
download | bcm5719-llvm-3f989d4e6e088d1630f716e279ea91c627a6de05.tar.gz bcm5719-llvm-3f989d4e6e088d1630f716e279ea91c627a6de05.zip |
Revert "Clang module compilation options need to be per-platform."
This reverts commit r251340.
Breaks the Windows build because Windows doesn't have getuid. The fix is not obvious.
llvm-svn: 251354
Diffstat (limited to 'lldb/source/Target/Platform.cpp')
-rw-r--r-- | lldb/source/Target/Platform.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/lldb/source/Target/Platform.cpp b/lldb/source/Target/Platform.cpp index 0a1ee784d55..33446a9fb3a 100644 --- a/lldb/source/Target/Platform.cpp +++ b/lldb/source/Target/Platform.cpp @@ -38,13 +38,12 @@ #include "lldb/Target/Target.h" #include "lldb/Target/UnixSignals.h" #include "lldb/Utility/Utils.h" -#include "llvm/ADT/StringExtras.h" -#include "llvm/ADT/SmallString.h" #include "llvm/Support/FileSystem.h" #include "llvm/Support/Path.h" #include "Utility/ModuleCache.h" + // Define these constants from POSIX mman.h rather than include the file // so that they will be correct even when compiled on Linux. #define MAP_PRIVATE 2 @@ -622,17 +621,6 @@ Platform::AddClangModuleCompilationOptions (Target *target, std::vector<std::str options.insert(options.end(), default_compilation_options.begin(), default_compilation_options.end()); - - { - llvm::SmallString<128> DefaultModuleCache; - const bool erased_on_reboot = false; - llvm::sys::path::system_temp_directory(erased_on_reboot, DefaultModuleCache); - llvm::sys::path::append(DefaultModuleCache, "org.llvm.clang"); - llvm::sys::path::append(DefaultModuleCache, "ModuleCache"); - std::string module_cache_argument("-fmodules-cache-path="); - module_cache_argument.append(DefaultModuleCache.str().str()); - options.push_back(module_cache_argument); - } } |