mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-06 10:38:54 +00:00
I got tired of VISIBILITY_HIDDEN colliding with the gcc enum. Rename it
to LLVM_LIBRARY_VISIBILITY and introduce LLVM_GLOBAL_VISIBILITY, which is the opposite, for future use by dragonegg. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103495 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
124b55dded
commit
16d8f8bd91
@ -617,7 +617,7 @@ conforms to the binary interface defined by library, most essentially the
|
|||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
class VISIBILITY_HIDDEN MyGC : public GCStrategy {
|
class LLVM_LIBRARY_VISIBILITY MyGC : public GCStrategy {
|
||||||
public:
|
public:
|
||||||
MyGC() {}
|
MyGC() {}
|
||||||
};
|
};
|
||||||
@ -1229,7 +1229,7 @@ generation in the JIT, nor using the object writers.</p>
|
|||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
class VISIBILITY_HIDDEN MyGCPrinter : public GCMetadataPrinter {
|
class LLVM_LIBRARY_VISIBILITY MyGCPrinter : public GCMetadataPrinter {
|
||||||
public:
|
public:
|
||||||
virtual void beginAssembly(std::ostream &OS, AsmPrinter &AP,
|
virtual void beginAssembly(std::ostream &OS, AsmPrinter &AP,
|
||||||
const TargetAsmInfo &TAI);
|
const TargetAsmInfo &TAI);
|
||||||
|
@ -15,12 +15,21 @@
|
|||||||
#ifndef LLVM_SUPPORT_COMPILER_H
|
#ifndef LLVM_SUPPORT_COMPILER_H
|
||||||
#define LLVM_SUPPORT_COMPILER_H
|
#define LLVM_SUPPORT_COMPILER_H
|
||||||
|
|
||||||
// The VISIBILITY_HIDDEN macro, used for marking classes with the GCC-specific
|
/// LLVM_LIBRARY_VISIBILITY - If a class marked with this attribute is linked
|
||||||
// visibility("hidden") attribute.
|
/// into a shared library, then the class should be private to the library and
|
||||||
|
/// not accessible from outside it. Can also be used to mark variables and
|
||||||
|
/// functions, making them private to any shared library they are linked into.
|
||||||
|
|
||||||
|
/// LLVM_GLOBAL_VISIBILITY - If a class marked with this attribute is linked
|
||||||
|
/// into a shared library, then the class will be accessible from outside the
|
||||||
|
/// the library. Can also be used to mark variables and functions, making them
|
||||||
|
/// accessible from outside any shared library they are linked into.
|
||||||
#if (__GNUC__ >= 4) && !defined(__MINGW32__) && !defined(__CYGWIN__)
|
#if (__GNUC__ >= 4) && !defined(__MINGW32__) && !defined(__CYGWIN__)
|
||||||
#define VISIBILITY_HIDDEN __attribute__ ((visibility("hidden")))
|
#define LLVM_LIBRARY_VISIBILITY __attribute__ ((visibility("hidden")))
|
||||||
|
#define LLVM_GLOBAL_VISIBILITY __attribute__ ((visibility("default")))
|
||||||
#else
|
#else
|
||||||
#define VISIBILITY_HIDDEN
|
#define LLVM_LIBRARY_VISIBILITY
|
||||||
|
#define LLVM_GLOBAL_VISIBILITY
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (__GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))
|
#if (__GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))
|
||||||
|
@ -32,7 +32,7 @@ namespace llvm {
|
|||||||
/// For example, loop induction variable increments should be
|
/// For example, loop induction variable increments should be
|
||||||
/// scheduled as soon as possible after the variable's last use.
|
/// scheduled as soon as possible after the variable's last use.
|
||||||
///
|
///
|
||||||
class VISIBILITY_HIDDEN LoopDependencies {
|
class LLVM_LIBRARY_VISIBILITY LoopDependencies {
|
||||||
const MachineLoopInfo &MLI;
|
const MachineLoopInfo &MLI;
|
||||||
const MachineDominatorTree &MDT;
|
const MachineDominatorTree &MDT;
|
||||||
|
|
||||||
@ -94,7 +94,7 @@ namespace llvm {
|
|||||||
|
|
||||||
/// ScheduleDAGInstrs - A ScheduleDAG subclass for scheduling lists of
|
/// ScheduleDAGInstrs - A ScheduleDAG subclass for scheduling lists of
|
||||||
/// MachineInstrs.
|
/// MachineInstrs.
|
||||||
class VISIBILITY_HIDDEN ScheduleDAGInstrs : public ScheduleDAG {
|
class LLVM_LIBRARY_VISIBILITY ScheduleDAGInstrs : public ScheduleDAG {
|
||||||
const MachineLoopInfo &MLI;
|
const MachineLoopInfo &MLI;
|
||||||
const MachineDominatorTree &MDT;
|
const MachineDominatorTree &MDT;
|
||||||
const MachineFrameInfo *MFI;
|
const MachineFrameInfo *MFI;
|
||||||
|
@ -32,7 +32,7 @@ namespace llvm {
|
|||||||
/// involves promoting small sizes to large sizes or splitting up large values
|
/// involves promoting small sizes to large sizes or splitting up large values
|
||||||
/// into small values.
|
/// into small values.
|
||||||
///
|
///
|
||||||
class VISIBILITY_HIDDEN DAGTypeLegalizer {
|
class LLVM_LIBRARY_VISIBILITY DAGTypeLegalizer {
|
||||||
const TargetLowering &TLI;
|
const TargetLowering &TLI;
|
||||||
SelectionDAG &DAG;
|
SelectionDAG &DAG;
|
||||||
public:
|
public:
|
||||||
|
@ -4944,7 +4944,7 @@ isAllocatableRegister(unsigned Reg, MachineFunction &MF,
|
|||||||
namespace llvm {
|
namespace llvm {
|
||||||
/// AsmOperandInfo - This contains information for each constraint that we are
|
/// AsmOperandInfo - This contains information for each constraint that we are
|
||||||
/// lowering.
|
/// lowering.
|
||||||
class VISIBILITY_HIDDEN SDISelAsmOperandInfo :
|
class LLVM_LIBRARY_VISIBILITY SDISelAsmOperandInfo :
|
||||||
public TargetLowering::AsmOperandInfo {
|
public TargetLowering::AsmOperandInfo {
|
||||||
public:
|
public:
|
||||||
/// CallOperand - If this is the result output operand or a clobber
|
/// CallOperand - If this is the result output operand or a clobber
|
||||||
|
@ -26,7 +26,7 @@ namespace llvm {
|
|||||||
//class ARMSubtarget;
|
//class ARMSubtarget;
|
||||||
|
|
||||||
/// ARMMCInstLower - This class is used to lower an MachineInstr into an MCInst.
|
/// ARMMCInstLower - This class is used to lower an MachineInstr into an MCInst.
|
||||||
class VISIBILITY_HIDDEN ARMMCInstLower {
|
class LLVM_LIBRARY_VISIBILITY ARMMCInstLower {
|
||||||
MCContext &Ctx;
|
MCContext &Ctx;
|
||||||
Mangler &Mang;
|
Mangler &Mang;
|
||||||
AsmPrinter &Printer;
|
AsmPrinter &Printer;
|
||||||
|
@ -26,7 +26,7 @@ namespace llvm {
|
|||||||
|
|
||||||
/// MSP430MCInstLower - This class is used to lower an MachineInstr
|
/// MSP430MCInstLower - This class is used to lower an MachineInstr
|
||||||
/// into an MCInst.
|
/// into an MCInst.
|
||||||
class VISIBILITY_HIDDEN MSP430MCInstLower {
|
class LLVM_LIBRARY_VISIBILITY MSP430MCInstLower {
|
||||||
MCContext &Ctx;
|
MCContext &Ctx;
|
||||||
Mangler &Mang;
|
Mangler &Mang;
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
class VISIBILITY_HIDDEN PIC16AsmPrinter : public AsmPrinter {
|
class LLVM_LIBRARY_VISIBILITY PIC16AsmPrinter : public AsmPrinter {
|
||||||
public:
|
public:
|
||||||
explicit PIC16AsmPrinter(TargetMachine &TM, MCStreamer &Streamer);
|
explicit PIC16AsmPrinter(TargetMachine &TM, MCStreamer &Streamer);
|
||||||
private:
|
private:
|
||||||
|
@ -26,7 +26,7 @@ using namespace llvm;
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
class VISIBILITY_HIDDEN PIC16DAGToDAGISel : public SelectionDAGISel {
|
class LLVM_LIBRARY_VISIBILITY PIC16DAGToDAGISel : public SelectionDAGISel {
|
||||||
|
|
||||||
/// TM - Keep a reference to PIC16TargetMachine.
|
/// TM - Keep a reference to PIC16TargetMachine.
|
||||||
const PIC16TargetMachine &TM;
|
const PIC16TargetMachine &TM;
|
||||||
|
@ -31,7 +31,7 @@ class MCInst;
|
|||||||
class MCStreamer;
|
class MCStreamer;
|
||||||
class MCSymbol;
|
class MCSymbol;
|
||||||
|
|
||||||
class VISIBILITY_HIDDEN X86AsmPrinter : public AsmPrinter {
|
class LLVM_LIBRARY_VISIBILITY X86AsmPrinter : public AsmPrinter {
|
||||||
const X86Subtarget *Subtarget;
|
const X86Subtarget *Subtarget;
|
||||||
public:
|
public:
|
||||||
explicit X86AsmPrinter(TargetMachine &TM, MCStreamer &Streamer)
|
explicit X86AsmPrinter(TargetMachine &TM, MCStreamer &Streamer)
|
||||||
|
@ -25,7 +25,7 @@ namespace llvm {
|
|||||||
class X86Subtarget;
|
class X86Subtarget;
|
||||||
|
|
||||||
/// X86MCInstLower - This class is used to lower an MachineInstr into an MCInst.
|
/// X86MCInstLower - This class is used to lower an MachineInstr into an MCInst.
|
||||||
class VISIBILITY_HIDDEN X86MCInstLower {
|
class LLVM_LIBRARY_VISIBILITY X86MCInstLower {
|
||||||
MCContext &Ctx;
|
MCContext &Ctx;
|
||||||
Mangler *Mang;
|
Mangler *Mang;
|
||||||
X86AsmPrinter &AsmPrinter;
|
X86AsmPrinter &AsmPrinter;
|
||||||
|
@ -51,7 +51,7 @@ static inline unsigned getComplexity(Value *V) {
|
|||||||
/// InstCombineIRInserter - This is an IRBuilder insertion helper that works
|
/// InstCombineIRInserter - This is an IRBuilder insertion helper that works
|
||||||
/// just like the normal insertion helper, but also adds any new instructions
|
/// just like the normal insertion helper, but also adds any new instructions
|
||||||
/// to the instcombine worklist.
|
/// to the instcombine worklist.
|
||||||
class VISIBILITY_HIDDEN InstCombineIRInserter
|
class LLVM_LIBRARY_VISIBILITY InstCombineIRInserter
|
||||||
: public IRBuilderDefaultInserter<true> {
|
: public IRBuilderDefaultInserter<true> {
|
||||||
InstCombineWorklist &Worklist;
|
InstCombineWorklist &Worklist;
|
||||||
public:
|
public:
|
||||||
@ -65,7 +65,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
/// InstCombiner - The -instcombine pass.
|
/// InstCombiner - The -instcombine pass.
|
||||||
class VISIBILITY_HIDDEN InstCombiner
|
class LLVM_LIBRARY_VISIBILITY InstCombiner
|
||||||
: public FunctionPass,
|
: public FunctionPass,
|
||||||
public InstVisitor<InstCombiner, Instruction*> {
|
public InstVisitor<InstCombiner, Instruction*> {
|
||||||
TargetData *TD;
|
TargetData *TD;
|
||||||
|
@ -22,7 +22,7 @@ namespace llvm {
|
|||||||
|
|
||||||
/// InstCombineWorklist - This is the worklist management logic for
|
/// InstCombineWorklist - This is the worklist management logic for
|
||||||
/// InstCombine.
|
/// InstCombine.
|
||||||
class VISIBILITY_HIDDEN InstCombineWorklist {
|
class LLVM_LIBRARY_VISIBILITY InstCombineWorklist {
|
||||||
SmallVector<Instruction*, 256> Worklist;
|
SmallVector<Instruction*, 256> Worklist;
|
||||||
DenseMap<Instruction*, unsigned> WorklistMap;
|
DenseMap<Instruction*, unsigned> WorklistMap;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user