diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-27 21:22:30 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-27 21:22:30 +0000 |
commit | b5261ebabb215330d6549048b825d236fb3c9b6b (patch) | |
tree | c6629c36efe7e6d70bfffcb970bfb5e943887692 /include/llvm/MC/MCSection.h | |
parent | dd061f6085e7492089befa7ed88dd0669ccb049a (diff) | |
download | llvm-b5261ebabb215330d6549048b825d236fb3c9b6b.tar.gz llvm-b5261ebabb215330d6549048b825d236fb3c9b6b.tar.bz2 llvm-b5261ebabb215330d6549048b825d236fb3c9b6b.tar.xz |
Move MCContext and friends to StringRef based APIs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77251 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCSection.h')
-rw-r--r-- | include/llvm/MC/MCSection.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/MC/MCSection.h b/include/llvm/MC/MCSection.h index 1b127b52e1..48ffa2facd 100644 --- a/include/llvm/MC/MCSection.h +++ b/include/llvm/MC/MCSection.h @@ -15,6 +15,7 @@ #define LLVM_MC_MCSECTION_H #include <string> +#include "llvm/ADT/StringRef.h" namespace llvm { @@ -25,7 +26,7 @@ namespace llvm { std::string Name; private: friend class MCContext; - MCSection(const char *_Name) : Name(_Name) {} + MCSection(const StringRef &_Name) : Name(_Name) {} MCSection(const MCSection&); // DO NOT IMPLEMENT void operator=(const MCSection&); // DO NOT IMPLEMENT |