projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- Eliminate MCCodeEmitter's dependency on TargetMachine. It now uses MCInstrInfo
[oota-llvm.git]
/
lib
/
Target
/
XCore
/
XCoreSubtarget.h
diff --git
a/lib/Target/XCore/XCoreSubtarget.h
b/lib/Target/XCore/XCoreSubtarget.h
index f8be3ec8618917475818a3ea4b463ff891d39db1..7b29fa2367106d5451cf3bb259809c8fae32a483 100644
(file)
--- a/
lib/Target/XCore/XCoreSubtarget.h
+++ b/
lib/Target/XCore/XCoreSubtarget.h
@@
-7,32
+7,35
@@
//
//===----------------------------------------------------------------------===//
//
//
//===----------------------------------------------------------------------===//
//
-// This file declares the XCore specific subclass of TargetSubtarget.
+// This file declares the XCore specific subclass of TargetSubtarget
Info
.
//
//===----------------------------------------------------------------------===//
#ifndef XCORESUBTARGET_H
#define XCORESUBTARGET_H
//
//===----------------------------------------------------------------------===//
#ifndef XCORESUBTARGET_H
#define XCORESUBTARGET_H
-#include "llvm/Target/TargetSubtarget.h"
+#include "llvm/Target/TargetSubtarget
Info
.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetMachine.h"
-
#include <string>
#include <string>
+#define GET_SUBTARGETINFO_HEADER
+#include "XCoreGenSubtargetInfo.inc"
+
namespace llvm {
namespace llvm {
+class StringRef;
-class XCoreSubtarget : public
TargetSubtarget
{
+class XCoreSubtarget : public
XCoreGenSubtargetInfo
{
public:
/// This constructor initializes the data members to match that
/// of the specified triple.
///
public:
/// This constructor initializes the data members to match that
/// of the specified triple.
///
- XCoreSubtarget(const std::string &TT, const std::string &FS);
+ XCoreSubtarget(const std::string &TT, const std::string &CPU,
+ const std::string &FS);
/// ParseSubtargetFeatures - Parses features string setting specified
/// subtarget options. Definition of function is auto generated by tblgen.
/// ParseSubtargetFeatures - Parses features string setting specified
/// subtarget options. Definition of function is auto generated by tblgen.
- std::string ParseSubtargetFeatures(const std::string &FS,
- const std::string &CPU);
+ void ParseSubtargetFeatures(StringRef CPU, StringRef FS);
};
} // End llvm namespace
};
} // End llvm namespace