summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-08 18:44:31 +0000
committerChris Lattner <sabre@nondot.org>2009-03-08 18:44:31 +0000
commitd5ac9d87b4ec13a8d3e0996e38a0cdf27ef8114c (patch)
treea6aa3fc16685fa5437b4e6665938d502e192211b /llvm/lib
parent9ec96d19e3d6106c90b8f874b3dcace5999fc2d6 (diff)
downloadbcm5719-llvm-d5ac9d87b4ec13a8d3e0996e38a0cdf27ef8114c.tar.gz
bcm5719-llvm-d5ac9d87b4ec13a8d3e0996e38a0cdf27ef8114c.zip
do not export all the X86FastISel symbols, ever.
llvm-svn: 66382
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/X86FastISel.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86FastISel.cpp b/llvm/lib/Target/X86/X86FastISel.cpp
index e7b70b17ef8..10359a74af7 100644
--- a/llvm/lib/Target/X86/X86FastISel.cpp
+++ b/llvm/lib/Target/X86/X86FastISel.cpp
@@ -30,9 +30,10 @@
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/Support/CallSite.h"
#include "llvm/Support/GetElementPtrTypeIterator.h"
-
using namespace llvm;
+namespace {
+
class X86FastISel : public FastISel {
/// Subtarget - Keep a pointer to the X86Subtarget around so that we can
/// make the right decision when generating code for different targets.
@@ -136,6 +137,8 @@ private:
bool isTypeLegal(const Type *Ty, MVT &VT, bool AllowI1 = false);
};
+
+} // end anonymous namespace.
bool X86FastISel::isTypeLegal(const Type *Ty, MVT &VT, bool AllowI1) {
VT = TLI.getValueType(Ty, /*HandleUnknown=*/true);
OpenPOWER on IntegriCloud