mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Honor the command line specification for machine type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32483 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -81,6 +81,9 @@ public:
|
||||
/// Set the CPU string. Replaces previous setting. Setting to "" clears CPU.
|
||||
void setCPU(const std::string &String);
|
||||
|
||||
/// Get the CPU string.
|
||||
const std::string &getCPU() const { return Features[0]; }
|
||||
|
||||
/// Setting CPU string only if no string is set.
|
||||
void setCPUIfNone(const std::string &String);
|
||||
|
||||
|
@@ -14,6 +14,8 @@
|
||||
#ifndef LLVM_TARGET_TARGETSUBTARGET_H
|
||||
#define LLVM_TARGET_TARGETSUBTARGET_H
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace llvm {
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
@@ -25,10 +27,13 @@ namespace llvm {
|
||||
class TargetSubtarget {
|
||||
TargetSubtarget(const TargetSubtarget&); // DO NOT IMPLEMENT
|
||||
void operator=(const TargetSubtarget&); // DO NOT IMPLEMENT
|
||||
std::string CPU; // CPU name.
|
||||
protected: // Can only create subclasses...
|
||||
TargetSubtarget();
|
||||
public:
|
||||
virtual ~TargetSubtarget();
|
||||
void setCPU(const std::string &C) { CPU = C; }
|
||||
const std::string &getCPU() const { return CPU; }
|
||||
};
|
||||
|
||||
} // End llvm namespace
|
||||
|
Reference in New Issue
Block a user