summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-15 17:20:57 +0000
committerDan Gohman <gohman@apple.com>2010-04-15 17:20:57 +0000
commit2085719a980faa5baa9dde0667a30560ffd1fb72 (patch)
tree65070b3cd4e6d36243783e5e0c745d889a55af27 /llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
parentb29cda9b3c39fbbd53db44dbc5075d5445a98200 (diff)
downloadbcm5719-llvm-2085719a980faa5baa9dde0667a30560ffd1fb72.tar.gz
bcm5719-llvm-2085719a980faa5baa9dde0667a30560ffd1fb72.zip
EnablePPC64RS and EnablePPC32RS are used in multiple files, so they
can't be static. llvm-svn: 101377
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCInstrInfo.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCInstrInfo.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
index bc45c22972f..9a26ad8be28 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
+++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
@@ -24,10 +24,13 @@
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/MC/MCAsmInfo.h"
-using namespace llvm;
+namespace llvm {
extern cl::opt<bool> EnablePPC32RS; // FIXME (64-bit): See PPCRegisterInfo.cpp.
extern cl::opt<bool> EnablePPC64RS; // FIXME (64-bit): See PPCRegisterInfo.cpp.
+}
+
+using namespace llvm;
PPCInstrInfo::PPCInstrInfo(PPCTargetMachine &tm)
: TargetInstrInfoImpl(PPCInsts, array_lengthof(PPCInsts)), TM(tm),
OpenPOWER on IntegriCloud