summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SystemZ
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-10-28 13:54:36 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-10-28 13:54:36 +0000
commit039b10423ab1eea6ea54dc37169f811c238ee559 (patch)
tree678d0e5e77794872bacb92b7a66dbc9e08da4c4b /llvm/lib/Target/SystemZ
parente003ca2a03b2b4d776628183c988f0e15c44240c (diff)
downloadbcm5719-llvm-039b10423ab1eea6ea54dc37169f811c238ee559.tar.gz
bcm5719-llvm-039b10423ab1eea6ea54dc37169f811c238ee559.zip
Put global classes into the appropriate namespace.
Most of the cases belong into an anonymous namespace. No functionality change intended. llvm-svn: 251515
Diffstat (limited to 'llvm/lib/Target/SystemZ')
-rw-r--r--llvm/lib/Target/SystemZ/InstPrinter/SystemZInstPrinter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/SystemZ/InstPrinter/SystemZInstPrinter.cpp b/llvm/lib/Target/SystemZ/InstPrinter/SystemZInstPrinter.cpp
index 059ae3f7fb0..6444cf8e464 100644
--- a/llvm/lib/Target/SystemZ/InstPrinter/SystemZInstPrinter.cpp
+++ b/llvm/lib/Target/SystemZ/InstPrinter/SystemZInstPrinter.cpp
@@ -60,15 +60,15 @@ void SystemZInstPrinter::printRegName(raw_ostream &O, unsigned RegNo) const {
O << '%' << getRegisterName(RegNo);
}
-template<unsigned N>
-void printUImmOperand(const MCInst *MI, int OpNum, raw_ostream &O) {
+template <unsigned N>
+static void printUImmOperand(const MCInst *MI, int OpNum, raw_ostream &O) {
int64_t Value = MI->getOperand(OpNum).getImm();
assert(isUInt<N>(Value) && "Invalid uimm argument");
O << Value;
}
-template<unsigned N>
-void printSImmOperand(const MCInst *MI, int OpNum, raw_ostream &O) {
+template <unsigned N>
+static void printSImmOperand(const MCInst *MI, int OpNum, raw_ostream &O) {
int64_t Value = MI->getOperand(OpNum).getImm();
assert(isInt<N>(Value) && "Invalid simm argument");
O << Value;
OpenPOWER on IntegriCloud