mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Run clang-format in small sections of code to make a patch easier to read.
llvm-svn: 208419
This commit is contained in:
parent
53b4653b45
commit
fc18d52e1a
@ -68,8 +68,7 @@ private:
|
|||||||
mutable ilist_half_node<Argument> Sentinel;
|
mutable ilist_half_node<Argument> Sentinel;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Function : public GlobalValue,
|
class Function : public GlobalValue, public ilist_node<Function> {
|
||||||
public ilist_node<Function> {
|
|
||||||
public:
|
public:
|
||||||
typedef iplist<Argument> ArgumentListType;
|
typedef iplist<Argument> ArgumentListType;
|
||||||
typedef iplist<BasicBlock> BasicBlockListType;
|
typedef iplist<BasicBlock> BasicBlockListType;
|
||||||
|
@ -207,10 +207,10 @@ void Function::eraseFromParent() {
|
|||||||
// Function Implementation
|
// Function Implementation
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
Function::Function(FunctionType *Ty, LinkageTypes Linkage,
|
Function::Function(FunctionType *Ty, LinkageTypes Linkage, const Twine &name,
|
||||||
const Twine &name, Module *ParentModule)
|
Module *ParentModule)
|
||||||
: GlobalValue(PointerType::getUnqual(Ty),
|
: GlobalValue(PointerType::getUnqual(Ty), Value::FunctionVal, nullptr, 0,
|
||||||
Value::FunctionVal, nullptr, 0, Linkage, name) {
|
Linkage, name) {
|
||||||
assert(FunctionType::isValidReturnType(getReturnType()) &&
|
assert(FunctionType::isValidReturnType(getReturnType()) &&
|
||||||
"invalid return type");
|
"invalid return type");
|
||||||
SymTab = new ValueSymbolTable();
|
SymTab = new ValueSymbolTable();
|
||||||
|
@ -110,12 +110,10 @@ bool GlobalValue::isDeclaration() const {
|
|||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
GlobalVariable::GlobalVariable(Type *Ty, bool constant, LinkageTypes Link,
|
GlobalVariable::GlobalVariable(Type *Ty, bool constant, LinkageTypes Link,
|
||||||
Constant *InitVal,
|
Constant *InitVal, const Twine &Name,
|
||||||
const Twine &Name, ThreadLocalMode TLMode,
|
ThreadLocalMode TLMode, unsigned AddressSpace,
|
||||||
unsigned AddressSpace,
|
|
||||||
bool isExternallyInitialized)
|
bool isExternallyInitialized)
|
||||||
: GlobalValue(PointerType::get(Ty, AddressSpace),
|
: GlobalValue(PointerType::get(Ty, AddressSpace), Value::GlobalVariableVal,
|
||||||
Value::GlobalVariableVal,
|
|
||||||
OperandTraits<GlobalVariable>::op_begin(this),
|
OperandTraits<GlobalVariable>::op_begin(this),
|
||||||
InitVal != nullptr, Link, Name),
|
InitVal != nullptr, Link, Name),
|
||||||
isConstantGlobal(constant), threadLocalMode(TLMode),
|
isConstantGlobal(constant), threadLocalMode(TLMode),
|
||||||
@ -131,12 +129,10 @@ GlobalVariable::GlobalVariable(Type *Ty, bool constant, LinkageTypes Link,
|
|||||||
|
|
||||||
GlobalVariable::GlobalVariable(Module &M, Type *Ty, bool constant,
|
GlobalVariable::GlobalVariable(Module &M, Type *Ty, bool constant,
|
||||||
LinkageTypes Link, Constant *InitVal,
|
LinkageTypes Link, Constant *InitVal,
|
||||||
const Twine &Name,
|
const Twine &Name, GlobalVariable *Before,
|
||||||
GlobalVariable *Before, ThreadLocalMode TLMode,
|
ThreadLocalMode TLMode, unsigned AddressSpace,
|
||||||
unsigned AddressSpace,
|
|
||||||
bool isExternallyInitialized)
|
bool isExternallyInitialized)
|
||||||
: GlobalValue(PointerType::get(Ty, AddressSpace),
|
: GlobalValue(PointerType::get(Ty, AddressSpace), Value::GlobalVariableVal,
|
||||||
Value::GlobalVariableVal,
|
|
||||||
OperandTraits<GlobalVariable>::op_begin(this),
|
OperandTraits<GlobalVariable>::op_begin(this),
|
||||||
InitVal != nullptr, Link, Name),
|
InitVal != nullptr, Link, Name),
|
||||||
isConstantGlobal(constant), threadLocalMode(TLMode),
|
isConstantGlobal(constant), threadLocalMode(TLMode),
|
||||||
|
Loading…
Reference in New Issue
Block a user