mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Run clang-format in small sections of code to make a patch easier to read.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208419 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -110,16 +110,14 @@ bool GlobalValue::isDeclaration() const {
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
GlobalVariable::GlobalVariable(Type *Ty, bool constant, LinkageTypes Link,
|
||||
Constant *InitVal,
|
||||
const Twine &Name, ThreadLocalMode TLMode,
|
||||
unsigned AddressSpace,
|
||||
Constant *InitVal, const Twine &Name,
|
||||
ThreadLocalMode TLMode, unsigned AddressSpace,
|
||||
bool isExternallyInitialized)
|
||||
: GlobalValue(PointerType::get(Ty, AddressSpace),
|
||||
Value::GlobalVariableVal,
|
||||
OperandTraits<GlobalVariable>::op_begin(this),
|
||||
InitVal != nullptr, Link, Name),
|
||||
isConstantGlobal(constant), threadLocalMode(TLMode),
|
||||
isExternallyInitializedConstant(isExternallyInitialized) {
|
||||
: GlobalValue(PointerType::get(Ty, AddressSpace), Value::GlobalVariableVal,
|
||||
OperandTraits<GlobalVariable>::op_begin(this),
|
||||
InitVal != nullptr, Link, Name),
|
||||
isConstantGlobal(constant), threadLocalMode(TLMode),
|
||||
isExternallyInitializedConstant(isExternallyInitialized) {
|
||||
if (InitVal) {
|
||||
assert(InitVal->getType() == Ty &&
|
||||
"Initializer should be the same type as the GlobalVariable!");
|
||||
@@ -131,16 +129,14 @@ GlobalVariable::GlobalVariable(Type *Ty, bool constant, LinkageTypes Link,
|
||||
|
||||
GlobalVariable::GlobalVariable(Module &M, Type *Ty, bool constant,
|
||||
LinkageTypes Link, Constant *InitVal,
|
||||
const Twine &Name,
|
||||
GlobalVariable *Before, ThreadLocalMode TLMode,
|
||||
unsigned AddressSpace,
|
||||
const Twine &Name, GlobalVariable *Before,
|
||||
ThreadLocalMode TLMode, unsigned AddressSpace,
|
||||
bool isExternallyInitialized)
|
||||
: GlobalValue(PointerType::get(Ty, AddressSpace),
|
||||
Value::GlobalVariableVal,
|
||||
OperandTraits<GlobalVariable>::op_begin(this),
|
||||
InitVal != nullptr, Link, Name),
|
||||
isConstantGlobal(constant), threadLocalMode(TLMode),
|
||||
isExternallyInitializedConstant(isExternallyInitialized) {
|
||||
: GlobalValue(PointerType::get(Ty, AddressSpace), Value::GlobalVariableVal,
|
||||
OperandTraits<GlobalVariable>::op_begin(this),
|
||||
InitVal != nullptr, Link, Name),
|
||||
isConstantGlobal(constant), threadLocalMode(TLMode),
|
||||
isExternallyInitializedConstant(isExternallyInitialized) {
|
||||
if (InitVal) {
|
||||
assert(InitVal->getType() == Ty &&
|
||||
"Initializer should be the same type as the GlobalVariable!");
|
||||
|
Reference in New Issue
Block a user