projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow constant folding of GEP instructions, even if we don't do a whole lot yet.
[oota-llvm.git]
/
lib
/
VMCore
/
Function.cpp
diff --git
a/lib/VMCore/Function.cpp
b/lib/VMCore/Function.cpp
index 70569c0f67ce7539f0e878921347b0fd5260ee95..3324565654b0f1bd32f61779874967e7ec5e4d9a 100644
(file)
--- a/
lib/VMCore/Function.cpp
+++ b/
lib/VMCore/Function.cpp
@@
-77,9
+77,9
@@
void Argument::setParent(Function *parent) {
// Function Implementation
//===----------------------------------------------------------------------===//
// Function Implementation
//===----------------------------------------------------------------------===//
-Function::Function(const FunctionType *Ty,
bool isInternal
,
+Function::Function(const FunctionType *Ty,
LinkageTypes Linkage
,
const std::string &name, Module *ParentModule)
const std::string &name, Module *ParentModule)
- : GlobalValue(PointerType::get(Ty), Value::FunctionVal,
isInternal
, name) {
+ : GlobalValue(PointerType::get(Ty), Value::FunctionVal,
Linkage
, name) {
BasicBlocks.setItemParent(this);
BasicBlocks.setParent(this);
ArgumentList.setItemParent(this);
BasicBlocks.setItemParent(this);
BasicBlocks.setParent(this);
ArgumentList.setItemParent(this);
@@
-154,10
+154,10
@@
void Function::dropAllReferences() {
// GlobalVariable Implementation
//===----------------------------------------------------------------------===//
// GlobalVariable Implementation
//===----------------------------------------------------------------------===//
-GlobalVariable::GlobalVariable(const Type *Ty, bool constant,
bool isIntern
,
+GlobalVariable::GlobalVariable(const Type *Ty, bool constant,
LinkageTypes Link
,
Constant *Initializer,
const std::string &Name, Module *ParentModule)
Constant *Initializer,
const std::string &Name, Module *ParentModule)
- : GlobalValue(PointerType::get(Ty), Value::GlobalVariableVal,
isIntern
, Name),
+ : GlobalValue(PointerType::get(Ty), Value::GlobalVariableVal,
Link
, Name),
isConstantGlobal(constant) {
if (Initializer) Operands.push_back(Use((Value*)Initializer, this));
isConstantGlobal(constant) {
if (Initializer) Operands.push_back(Use((Value*)Initializer, this));