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
This commit is contained in:
Daniel Dunbar
2009-07-27 21:22:30 +00:00
parent dd061f6085
commit b5261ebabb
4 changed files with 16 additions and 13 deletions

View File

@@ -15,6 +15,7 @@
#define LLVM_MC_MCSYMBOL_H
#include <string>
#include "llvm/ADT/StringRef.h"
namespace llvm {
class MCSection;
@@ -46,7 +47,7 @@ namespace llvm {
private: // MCContext creates and uniques these.
friend class MCContext;
MCSymbol(const char *_Name, bool _IsTemporary)
MCSymbol(const StringRef &_Name, bool _IsTemporary)
: Name(_Name), Section(0), IsTemporary(_IsTemporary), IsExternal(false) {}
MCSymbol(const MCSymbol&); // DO NOT IMPLEMENT