mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-06 10:38:54 +00:00
Make helpers static. Add missing include so LLVMInitializeObjCARCOpts gets C linkage.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175264 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1e8839302b
commit
74b3c8da48
@ -36,7 +36,7 @@
|
|||||||
#include "llvm/Target/TargetRegisterInfo.h"
|
#include "llvm/Target/TargetRegisterInfo.h"
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
cl::opt<bool>
|
static cl::opt<bool>
|
||||||
EnableARMEHABIDescriptors("arm-enable-ehabi-descriptors", cl::Hidden,
|
EnableARMEHABIDescriptors("arm-enable-ehabi-descriptors", cl::Hidden,
|
||||||
cl::desc("Generate ARM EHABI tables with unwinding descriptors"),
|
cl::desc("Generate ARM EHABI tables with unwinding descriptors"),
|
||||||
cl::init(false));
|
cl::init(false));
|
||||||
|
@ -46,7 +46,7 @@ protected:
|
|||||||
uint64_t Length;
|
uint64_t Length;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
namespace {
|
||||||
/// \brief DWARF Common Information Entry (CIE)
|
/// \brief DWARF Common Information Entry (CIE)
|
||||||
class CIE : public FrameEntry {
|
class CIE : public FrameEntry {
|
||||||
public:
|
public:
|
||||||
@ -128,6 +128,7 @@ private:
|
|||||||
uint64_t AddressRange;
|
uint64_t AddressRange;
|
||||||
CIE *LinkedCIE;
|
CIE *LinkedCIE;
|
||||||
};
|
};
|
||||||
|
} // end anonymous namespace
|
||||||
|
|
||||||
|
|
||||||
DWARFDebugFrame::DWARFDebugFrame() {
|
DWARFDebugFrame::DWARFDebugFrame() {
|
||||||
|
@ -224,7 +224,7 @@ void MCObjectStreamer::EmitInstToFragment(const MCInst &Inst) {
|
|||||||
IF->getContents().append(Code.begin(), Code.end());
|
IF->getContents().append(Code.begin(), Code.end());
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *BundlingNotImplementedMsg =
|
static const char *BundlingNotImplementedMsg =
|
||||||
"Aligned bundling is not implemented for this object format";
|
"Aligned bundling is not implemented for this object format";
|
||||||
|
|
||||||
void MCObjectStreamer::EmitBundleAlignMode(unsigned AlignPow2) {
|
void MCObjectStreamer::EmitBundleAlignMode(unsigned AlignPow2) {
|
||||||
|
@ -248,8 +248,8 @@ SMDiagnostic::SMDiagnostic(const SourceMgr &sm, SMLoc L, StringRef FN,
|
|||||||
std::sort(FixIts.begin(), FixIts.end());
|
std::sort(FixIts.begin(), FixIts.end());
|
||||||
}
|
}
|
||||||
|
|
||||||
void buildFixItLine(std::string &CaretLine, std::string &FixItLine,
|
static void buildFixItLine(std::string &CaretLine, std::string &FixItLine,
|
||||||
ArrayRef<SMFixIt> FixIts, ArrayRef<char> SourceLine) {
|
ArrayRef<SMFixIt> FixIts, ArrayRef<char> SourceLine){
|
||||||
if (FixIts.empty())
|
if (FixIts.empty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -1525,11 +1525,9 @@ Init *FieldInit::resolveReferences(Record &R, const RecordVal *RV) const {
|
|||||||
return const_cast<FieldInit *>(this);
|
return const_cast<FieldInit *>(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProfileDagInit(FoldingSetNodeID &ID,
|
static void ProfileDagInit(FoldingSetNodeID &ID, Init *V, const std::string &VN,
|
||||||
Init *V,
|
ArrayRef<Init *> ArgRange,
|
||||||
const std::string &VN,
|
ArrayRef<std::string> NameRange) {
|
||||||
ArrayRef<Init *> ArgRange,
|
|
||||||
ArrayRef<std::string> NameRange) {
|
|
||||||
ID.AddPointer(V);
|
ID.AddPointer(V);
|
||||||
ID.AddString(VN);
|
ID.AddString(VN);
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ ForceStackAlign("force-align-stack",
|
|||||||
" needed for the function."),
|
" needed for the function."),
|
||||||
cl::init(false), cl::Hidden);
|
cl::init(false), cl::Hidden);
|
||||||
|
|
||||||
cl::opt<bool>
|
static cl::opt<bool>
|
||||||
EnableBasePointer("x86-use-base-pointer", cl::Hidden, cl::init(true),
|
EnableBasePointer("x86-use-base-pointer", cl::Hidden, cl::init(true),
|
||||||
cl::desc("Enable use of a base pointer for complex stack frames"));
|
cl::desc("Enable use of a base pointer for complex stack frames"));
|
||||||
|
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
|
|
||||||
#include "ObjCARC.h"
|
#include "ObjCARC.h"
|
||||||
#include "llvm-c/Core.h"
|
#include "llvm-c/Core.h"
|
||||||
|
#include "llvm-c/Initialization.h"
|
||||||
#include "llvm/InitializePasses.h"
|
#include "llvm/InitializePasses.h"
|
||||||
#include "llvm/Support/CommandLine.h"
|
#include "llvm/Support/CommandLine.h"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user