diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2016-11-19 20:44:26 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2016-11-19 20:44:26 +0000 |
| commit | ffd3715d1609c8504b23e252bb89d8a61b1c90ba (patch) | |
| tree | d659e7d4de614cf0784317ccc91cc5bc5e2e179f /llvm/lib/Target | |
| parent | a14e0cb852a7a826a98925146484ca30ed60f222 (diff) | |
| download | bcm5719-llvm-ffd3715d1609c8504b23e252bb89d8a61b1c90ba.tar.gz bcm5719-llvm-ffd3715d1609c8504b23e252bb89d8a61b1c90ba.zip | |
Give some helper classes/functions internal linkage. NFC.
llvm-svn: 287462
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/AArch64/MCTargetDesc/AArch64ELFObjectWriter.cpp | 6 | ||||
| -rw-r--r-- | llvm/lib/Target/SystemZ/SystemZHazardRecognizer.cpp | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64ELFObjectWriter.cpp b/llvm/lib/Target/AArch64/MCTargetDesc/AArch64ELFObjectWriter.cpp index 6839e775c52..a1edb3cef46 100644 --- a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64ELFObjectWriter.cpp +++ b/llvm/lib/Target/AArch64/MCTargetDesc/AArch64ELFObjectWriter.cpp @@ -52,9 +52,9 @@ AArch64ELFObjectWriter::~AArch64ELFObjectWriter() {} "supported (LP64 eqv: " #lp64rtype ")" // assumes IsILP32 is true -bool isNonILP32reloc(const MCFixup &Fixup, AArch64MCExpr::VariantKind RefKind, - MCContext &Ctx) -{ +static bool isNonILP32reloc(const MCFixup &Fixup, + AArch64MCExpr::VariantKind RefKind, + MCContext &Ctx) { if ((unsigned)Fixup.getKind() != AArch64::fixup_aarch64_movw) return false; switch(RefKind) { diff --git a/llvm/lib/Target/SystemZ/SystemZHazardRecognizer.cpp b/llvm/lib/Target/SystemZ/SystemZHazardRecognizer.cpp index 26284df1d78..fe4b52b515e 100644 --- a/llvm/lib/Target/SystemZ/SystemZHazardRecognizer.cpp +++ b/llvm/lib/Target/SystemZ/SystemZHazardRecognizer.cpp @@ -31,10 +31,10 @@ using namespace llvm; // This is the limit of processor resource usage at which the // scheduler should try to look for other instructions (not using the // critical resource). -cl::opt<int> ProcResCostLim("procres-cost-lim", cl::Hidden, - cl::desc("The OOO window for processor " - "resources during scheduling."), - cl::init(8)); +static cl::opt<int> ProcResCostLim("procres-cost-lim", cl::Hidden, + cl::desc("The OOO window for processor " + "resources during scheduling."), + cl::init(8)); SystemZHazardRecognizer:: SystemZHazardRecognizer(const MachineSchedContext *C) : DAG(nullptr), |

