mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Don't put default parameter values into .cpp files, it breaks 3.x compilers
llvm-svn: 3799
This commit is contained in:
parent
2cef6041d2
commit
86e6e0f6e3
@ -14,9 +14,7 @@
|
|||||||
#include "llvm/Transforms/Scalar.h"
|
#include "llvm/Transforms/Scalar.h"
|
||||||
#include "llvm/Support/InstVisitor.h"
|
#include "llvm/Support/InstVisitor.h"
|
||||||
#include "llvm/Module.h"
|
#include "llvm/Module.h"
|
||||||
#include "llvm/Function.h"
|
|
||||||
#include "llvm/Constants.h"
|
#include "llvm/Constants.h"
|
||||||
#include "llvm/GlobalVariable.h"
|
|
||||||
#include "llvm/iMemory.h"
|
#include "llvm/iMemory.h"
|
||||||
#include "llvm/iPHINode.h"
|
#include "llvm/iPHINode.h"
|
||||||
#include "llvm/iOther.h"
|
#include "llvm/iOther.h"
|
||||||
@ -165,7 +163,7 @@ static RegisterOpt<PreSelection> X("preselect",
|
|||||||
|
|
||||||
// PreSelection::getGlobalAddr: Put address of a global into a v. register.
|
// PreSelection::getGlobalAddr: Put address of a global into a v. register.
|
||||||
GetElementPtrInst*
|
GetElementPtrInst*
|
||||||
PreSelection::getGlobalAddr(Value* ptr, Instruction* insertBefore = 0)
|
PreSelection::getGlobalAddr(Value* ptr, Instruction* insertBefore)
|
||||||
{
|
{
|
||||||
return (isa<GlobalValue>(ptr))
|
return (isa<GlobalValue>(ptr))
|
||||||
? new GetElementPtrInst(ptr,
|
? new GetElementPtrInst(ptr,
|
||||||
|
Loading…
Reference in New Issue
Block a user