Move MCContext and friends to StringRef based APIs.
[oota-llvm.git] / include / llvm / MC / MCSection.h
index 1b127b52e1c9e273b21cf6ec552c42edf7c37cb2..48ffa2facd6b0fa17fce4424d31e95d272db34d3 100644 (file)
@@ -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