Hide x86 symbols

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28976 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-06-28 23:27:49 +00:00
parent 9525528a7d
commit 2c79de8018
4 changed files with 8 additions and 4 deletions

View File

@ -22,6 +22,7 @@
#include "llvm/CodeGen/Passes.h" #include "llvm/CodeGen/Passes.h"
#include "llvm/Function.h" #include "llvm/Function.h"
#include "llvm/ADT/Statistic.h" #include "llvm/ADT/Statistic.h"
#include "llvm/Support/Visibility.h"
#include "llvm/Target/TargetOptions.h" #include "llvm/Target/TargetOptions.h"
#include <iostream> #include <iostream>
using namespace llvm; using namespace llvm;
@ -32,7 +33,7 @@ namespace {
} }
namespace { namespace {
class Emitter : public MachineFunctionPass { class VISIBILITY_HIDDEN Emitter : public MachineFunctionPass {
const X86InstrInfo *II; const X86InstrInfo *II;
MachineCodeEmitter &MCE; MachineCodeEmitter &MCE;
std::vector<std::pair<MachineBasicBlock *, unsigned> > BBRefs; std::vector<std::pair<MachineBasicBlock *, unsigned> > BBRefs;

View File

@ -16,10 +16,11 @@
#include "X86TargetMachine.h" #include "X86TargetMachine.h"
#include "llvm/PassManager.h" #include "llvm/PassManager.h"
#include "llvm/CodeGen/ELFWriter.h" #include "llvm/CodeGen/ELFWriter.h"
#include "llvm/Support/Visibility.h"
using namespace llvm; using namespace llvm;
namespace { namespace {
class X86ELFWriter : public ELFWriter { class VISIBILITY_HIDDEN X86ELFWriter : public ELFWriter {
public: public:
X86ELFWriter(std::ostream &O, X86TargetMachine &TM) : ELFWriter(O, TM) { X86ELFWriter(std::ostream &O, X86TargetMachine &TM) : ELFWriter(O, TM) {
e_machine = 3; // EM_386 e_machine = 3; // EM_386

View File

@ -38,6 +38,7 @@
#include "llvm/Target/TargetInstrInfo.h" #include "llvm/Target/TargetInstrInfo.h"
#include "llvm/Target/TargetMachine.h" #include "llvm/Target/TargetMachine.h"
#include "llvm/Support/Debug.h" #include "llvm/Support/Debug.h"
#include "llvm/Support/Visibility.h"
#include "llvm/ADT/DepthFirstIterator.h" #include "llvm/ADT/DepthFirstIterator.h"
#include "llvm/ADT/Statistic.h" #include "llvm/ADT/Statistic.h"
#include "llvm/ADT/STLExtras.h" #include "llvm/ADT/STLExtras.h"
@ -50,7 +51,7 @@ namespace {
Statistic<> NumFXCH("x86-codegen", "Number of fxch instructions inserted"); Statistic<> NumFXCH("x86-codegen", "Number of fxch instructions inserted");
Statistic<> NumFP ("x86-codegen", "Number of floating point instructions"); Statistic<> NumFP ("x86-codegen", "Number of floating point instructions");
struct FPS : public MachineFunctionPass { struct VISIBILITY_HIDDEN FPS : public MachineFunctionPass {
virtual bool runOnMachineFunction(MachineFunction &MF); virtual bool runOnMachineFunction(MachineFunction &MF);
virtual const char *getPassName() const { return "X86 FP Stackifier"; } virtual const char *getPassName() const { return "X86 FP Stackifier"; }

View File

@ -31,6 +31,7 @@
#include "llvm/CodeGen/SelectionDAGISel.h" #include "llvm/CodeGen/SelectionDAGISel.h"
#include "llvm/Target/TargetMachine.h" #include "llvm/Target/TargetMachine.h"
#include "llvm/Support/Debug.h" #include "llvm/Support/Debug.h"
#include "llvm/Support/Visibility.h"
#include "llvm/ADT/Statistic.h" #include "llvm/ADT/Statistic.h"
#include <iostream> #include <iostream>
#include <set> #include <set>
@ -77,7 +78,7 @@ namespace {
/// ISel - X86 specific code to select X86 machine instructions for /// ISel - X86 specific code to select X86 machine instructions for
/// SelectionDAG operations. /// SelectionDAG operations.
/// ///
class X86DAGToDAGISel : public SelectionDAGISel { class VISIBILITY_HIDDEN X86DAGToDAGISel : public SelectionDAGISel {
/// ContainsFPCode - Every instruction we select that uses or defines a FP /// ContainsFPCode - Every instruction we select that uses or defines a FP
/// register should set this to true. /// register should set this to true.
bool ContainsFPCode; bool ContainsFPCode;