diff options
author | Chris Lattner <sabre@nondot.org> | 2009-11-07 09:13:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-11-07 09:13:23 +0000 |
commit | 044fe3e5132220650eda5e8f876739fb055455bc (patch) | |
tree | 24e22fa15350536a574a2d75a6e7c617109a8b58 /include/llvm/Target | |
parent | 9ea9331c67f53b9deb5aa58e0b27c2bddd21a200 (diff) | |
download | external_llvm-044fe3e5132220650eda5e8f876739fb055455bc.zip external_llvm-044fe3e5132220650eda5e8f876739fb055455bc.tar.gz external_llvm-044fe3e5132220650eda5e8f876739fb055455bc.tar.bz2 |
rewrite TargetData to use StringRef/raw_ostream instead of thrashing std::strings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86366 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
-rw-r--r-- | include/llvm/Target/TargetData.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Target/TargetData.h b/include/llvm/Target/TargetData.h index af85f73..cb26f5c 100644 --- a/include/llvm/Target/TargetData.h +++ b/include/llvm/Target/TargetData.h @@ -121,7 +121,7 @@ public: } /// Constructs a TargetData from a specification string. See init(). - explicit TargetData(const std::string &TargetDescription) + explicit TargetData(StringRef TargetDescription) : ImmutablePass(&ID) { init(TargetDescription); } @@ -142,7 +142,7 @@ public: ~TargetData(); // Not virtual, do not subclass this class //! Parse a target data layout string and initialize TargetData alignments. - void init(const std::string &TargetDescription); + void init(StringRef TargetDescription); /// Target endianness... bool isLittleEndian() const { return LittleEndian; } |