diff options
Diffstat (limited to 'lib/Analysis')
-rw-r--r-- | lib/Analysis/DIBuilder.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Analysis/DIBuilder.cpp b/lib/Analysis/DIBuilder.cpp index 4b1988c..489dd6a 100644 --- a/lib/Analysis/DIBuilder.cpp +++ b/lib/Analysis/DIBuilder.cpp @@ -318,8 +318,7 @@ DIArray DIBuilder::GetOrCreateArray(Value *const *Elements, unsigned NumElements /// CreateGlobalVariable - Create a new descriptor for the specified global. DIGlobalVariable DIBuilder:: -CreateGlobalVariable(StringRef Name, - StringRef LinkageName, DIFile F, unsigned LineNumber, +CreateGlobalVariable(StringRef Name, DIFile F, unsigned LineNumber, DIType Ty, bool isLocalToUnit, llvm::Value *Val) { Value *Elts[] = { GetTagConstant(VMContext, dwarf::DW_TAG_variable), @@ -327,7 +326,7 @@ CreateGlobalVariable(StringRef Name, TheCU, MDString::get(VMContext, Name), MDString::get(VMContext, Name), - MDString::get(VMContext, LinkageName), + MDString::get(VMContext, Name), F, ConstantInt::get(Type::getInt32Ty(VMContext), LineNumber), Ty, |