зеркало из https://github.com/microsoft/clang-1.git
Revert r75614 which depend on r75610 (for LLVM), which was reverted.
--- Reverse-merging r75614 into '.': U lib/CodeGen/CGDebugInfo.cpp git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75639 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
ea218b8e8f
Коммит
a1a5e8a160
|
@ -843,8 +843,7 @@ void CGDebugInfo::EmitFunctionStart(const char *Name, QualType ReturnType,
|
|||
unsigned LineNo = SM.getPresumedLoc(CurLoc).getLine();
|
||||
|
||||
llvm::DISubprogram SP =
|
||||
DebugFactory.CreateSubprogram(Unit, Name, Name,
|
||||
LLVMMangler->getMangledName(Fn),
|
||||
DebugFactory.CreateSubprogram(Unit, Name, Name, LLVMMangler->getValueName(Fn),
|
||||
Unit, LineNo,
|
||||
getOrCreateType(ReturnType, Unit),
|
||||
Fn->hasInternalLinkage(), true/*definition*/);
|
||||
|
@ -981,7 +980,7 @@ void CGDebugInfo::EmitGlobalVariable(llvm::GlobalVariable *Var,
|
|||
}
|
||||
|
||||
DebugFactory.CreateGlobalVariable(Unit, Name, Name,
|
||||
LLVMMangler->getMangledName(Var),
|
||||
LLVMMangler->getValueName(Var),
|
||||
Unit, LineNo,
|
||||
getOrCreateType(T, Unit),
|
||||
Var->hasInternalLinkage(),
|
||||
|
@ -1013,7 +1012,7 @@ void CGDebugInfo::EmitGlobalVariable(llvm::GlobalVariable *Var,
|
|||
}
|
||||
|
||||
DebugFactory.CreateGlobalVariable(Unit, Name, Name,
|
||||
LLVMMangler->getMangledName(Var),
|
||||
LLVMMangler->getValueName(Var),
|
||||
Unit, LineNo,
|
||||
getOrCreateType(T, Unit),
|
||||
Var->hasInternalLinkage(),
|
||||
|
|
Загрузка…
Ссылка в новой задаче