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