mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-21 09:25:07 +00:00
Global variable does not need linkage name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121212 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
48f17ba2a6
commit
94541efd92
@ -158,7 +158,6 @@ namespace llvm {
|
||||
|
||||
/// CreateGlobalVariable - Create a new descriptor for the specified global.
|
||||
/// @param Name Name of the variable.
|
||||
/// @param LinakgeName Mangled name of the variable.
|
||||
/// @param File File where this variable is defined.
|
||||
/// @param LineNo Line number.
|
||||
/// @param Ty Variable Type.
|
||||
@ -166,8 +165,7 @@ namespace llvm {
|
||||
/// externally visible or not.
|
||||
/// @param Val llvm::Value of the variable.
|
||||
DIGlobalVariable
|
||||
CreateGlobalVariable(StringRef Name,
|
||||
StringRef LinkageName, DIFile File, unsigned LineNo,
|
||||
CreateGlobalVariable(StringRef Name, DIFile File, unsigned LineNo,
|
||||
DIType Ty, bool isLocalToUnit, llvm::Value *Val);
|
||||
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user