diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-14 20:26:58 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-14 20:26:58 +0000 |
commit | 76858a7abd4faeb462e04f177666b87b23b65287 (patch) | |
tree | cb6b21d86d87da6f8f3daf8633f12d367720ef2f /include | |
parent | 89dbe9744255864445b1c9f9a613ae333d3f79c8 (diff) | |
download | external_llvm-76858a7abd4faeb462e04f177666b87b23b65287.zip external_llvm-76858a7abd4faeb462e04f177666b87b23b65287.tar.gz external_llvm-76858a7abd4faeb462e04f177666b87b23b65287.tar.bz2 |
Replace use of PathV1.h in MCContext.cpp.
GetCurrentDirectory is now unused. Remove it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184003 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/MC/MCContext.h | 5 | ||||
-rw-r--r-- | include/llvm/Support/PathV1.h | 5 |
2 files changed, 3 insertions, 7 deletions
diff --git a/include/llvm/MC/MCContext.h b/include/llvm/MC/MCContext.h index 0db3dee..9874ed2 100644 --- a/include/llvm/MC/MCContext.h +++ b/include/llvm/MC/MCContext.h @@ -11,6 +11,7 @@ #define LLVM_MC_MCCONTEXT_H #include "llvm/ADT/DenseMap.h" +#include "llvm/ADT/SmallString.h" #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/StringMap.h" #include "llvm/MC/MCDwarf.h" @@ -97,7 +98,7 @@ namespace llvm { bool SecureLogUsed; /// The compilation directory to use for DW_AT_comp_dir. - std::string CompilationDir; + SmallString<128> CompilationDir; /// The main file name if passed in explicitly. std::string MainFileName; @@ -272,7 +273,7 @@ namespace llvm { /// This can be overridden by clients which want to control the reported /// compilation directory and have it be something other than the current /// working directory. - const std::string &getCompilationDir() const { return CompilationDir; } + StringRef getCompilationDir() const { return CompilationDir; } /// \brief Set the compilation directory for DW_AT_comp_dir /// Override the default (CWD) compilation directory. diff --git a/include/llvm/Support/PathV1.h b/include/llvm/Support/PathV1.h index eaf2550..d3f82bb 100644 --- a/include/llvm/Support/PathV1.h +++ b/include/llvm/Support/PathV1.h @@ -102,11 +102,6 @@ namespace sys { /// directory. static Path GetTemporaryDirectory(std::string* ErrMsg = 0); - /// Construct a path to the current directory for the current process. - /// @returns The current working directory. - /// @brief Returns the current working directory. - static Path GetCurrentDirectory(); - /// Return the suffix commonly used on file names that contain an /// executable. /// @returns The executable file suffix for the current platform. |