aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/XCore/XCoreSubtarget.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-07-07 07:07:08 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-07-07 07:07:08 +0000
commit0ddff1b5359433faf2eb1c4ff5320ddcbd42f52f (patch)
tree1a7077a4920b307fe6172cf8eb4a9483a8e93fbd /lib/Target/XCore/XCoreSubtarget.h
parentcbd40f8357437a15c653cb8cccd7124a1bb55ae2 (diff)
downloadexternal_llvm-0ddff1b5359433faf2eb1c4ff5320ddcbd42f52f.zip
external_llvm-0ddff1b5359433faf2eb1c4ff5320ddcbd42f52f.tar.gz
external_llvm-0ddff1b5359433faf2eb1c4ff5320ddcbd42f52f.tar.bz2
Compute feature bits at time of MCSubtargetInfo initialization.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134606 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/XCore/XCoreSubtarget.h')
-rw-r--r--lib/Target/XCore/XCoreSubtarget.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/XCore/XCoreSubtarget.h b/lib/Target/XCore/XCoreSubtarget.h
index 2e52571..7b29fa2 100644
--- a/lib/Target/XCore/XCoreSubtarget.h
+++ b/lib/Target/XCore/XCoreSubtarget.h
@@ -22,6 +22,7 @@
#include "XCoreGenSubtargetInfo.inc"
namespace llvm {
+class StringRef;
class XCoreSubtarget : public XCoreGenSubtargetInfo {
@@ -34,7 +35,7 @@ public:
/// ParseSubtargetFeatures - Parses features string setting specified
/// subtarget options. Definition of function is auto generated by tblgen.
- void ParseSubtargetFeatures(const std::string &FS, const std::string &CPU);
+ void ParseSubtargetFeatures(StringRef CPU, StringRef FS);
};
} // End llvm namespace