[llvm] r283142 - AArch64Subtarget: Remove unused CPUString field
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 3 13:17:02 PDT 2016
Author: matze
Date: Mon Oct 3 15:17:02 2016
New Revision: 283142
URL: http://llvm.org/viewvc/llvm-project?rev=283142&view=rev
Log:
AArch64Subtarget: Remove unused CPUString field
Modified:
llvm/trunk/lib/Target/AArch64/AArch64Subtarget.cpp
llvm/trunk/lib/Target/AArch64/AArch64Subtarget.h
Modified: llvm/trunk/lib/Target/AArch64/AArch64Subtarget.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64Subtarget.cpp?rev=283142&r1=283141&r2=283142&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64Subtarget.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64Subtarget.cpp Mon Oct 3 15:17:02 2016
@@ -36,7 +36,8 @@ UseAddressTopByteIgnored("aarch64-use-tb
"an address is ignored"), cl::init(false), cl::Hidden);
AArch64Subtarget &
-AArch64Subtarget::initializeSubtargetDependencies(StringRef FS) {
+AArch64Subtarget::initializeSubtargetDependencies(StringRef FS,
+ StringRef CPUString) {
// Determine default and user-specified characteristics
if (CPUString.empty())
@@ -90,8 +91,8 @@ AArch64Subtarget::AArch64Subtarget(const
const std::string &FS,
const TargetMachine &TM, bool LittleEndian)
: AArch64GenSubtargetInfo(TT, CPU, FS), ReserveX18(TT.isOSDarwin()),
- IsLittle(LittleEndian), CPUString(CPU), TargetTriple(TT), FrameLowering(),
- InstrInfo(initializeSubtargetDependencies(FS)), TSInfo(),
+ IsLittle(LittleEndian), TargetTriple(TT), FrameLowering(),
+ InstrInfo(initializeSubtargetDependencies(FS, CPU)), TSInfo(),
TLInfo(TM, *this), GISel() {}
const CallLowering *AArch64Subtarget::getCallLowering() const {
Modified: llvm/trunk/lib/Target/AArch64/AArch64Subtarget.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64Subtarget.h?rev=283142&r1=283141&r2=283142&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64Subtarget.h (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64Subtarget.h Mon Oct 3 15:17:02 2016
@@ -97,9 +97,6 @@ protected:
bool IsLittle;
- /// CPUString - String name of used CPU.
- std::string CPUString;
-
/// TargetTriple - What processor and OS we're targeting.
Triple TargetTriple;
@@ -116,7 +113,8 @@ private:
/// initializeSubtargetDependencies - Initializes using CPUString and the
/// passed in feature string so that we can use initializer lists for
/// subtarget initialization.
- AArch64Subtarget &initializeSubtargetDependencies(StringRef FS);
+ AArch64Subtarget &initializeSubtargetDependencies(StringRef FS,
+ StringRef CPUString);
/// Initialize properties based on the selected processor family.
void initializeProperties();
More information about the llvm-commits
mailing list