aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
diff options
context:
space:
mode:
authorMuhammad Omair Javaid <omair.javaid@linaro.org>2023-05-15 23:13:19 +0400
committerMuhammad Omair Javaid <omair.javaid@linaro.org>2023-05-15 23:38:07 +0400
commit6b22608a1d30793b32f98d90f2c6a8c268630afa (patch)
tree81d1e3fc5e02b53989e124dea9c41818f0548c03 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
parentfc748408c6436c2a80e372156d53e15b014c6105 (diff)
downloadllvm-6b22608a1d30793b32f98d90f2c6a8c268630afa.zip
llvm-6b22608a1d30793b32f98d90f2c6a8c268630afa.tar.gz
llvm-6b22608a1d30793b32f98d90f2c6a8c268630afa.tar.bz2
Revert "Emit the correct flags for the PROC CodeView Debug Symbol"
This reverts commit e48826e016e2f427f3b7b1274166aa9aa0ea7f4f. https://lab.llvm.org/buildbot/#/builders/219/builds/2520 ldb-shell :: SymbolFile/PDB/function-nested-block.test Differential Revision: https://reviews.llvm.org/D148761
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
index 8161de5..ce5fe61 100644
--- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
@@ -1160,14 +1160,7 @@ void CodeViewDebug::emitDebugInfoForFunction(const Function *GV,
OS.AddComment("Function section index");
OS.emitCOFFSectionIndex(Fn);
OS.AddComment("Flags");
- ProcSymFlags ProcFlags = ProcSymFlags::HasOptimizedDebugInfo;
- if (FI.HasFramePointer)
- ProcFlags |= ProcSymFlags::HasFP;
- if (GV->hasFnAttribute(Attribute::NoReturn))
- ProcFlags |= ProcSymFlags::IsNoReturn;
- if (GV->hasFnAttribute(Attribute::NoInline))
- ProcFlags |= ProcSymFlags::IsNoInline;
- OS.emitInt8(static_cast<uint8_t>(ProcFlags));
+ OS.emitInt8(0);
// Emit the function display name as a null-terminated string.
OS.AddComment("Function name");
// Truncate the name so we won't overflow the record length field.
@@ -1487,7 +1480,6 @@ void CodeViewDebug::beginFunctionImpl(const MachineFunction *MF) {
CurFn->EncodedLocalFramePtrReg = EncodedFramePtrReg::StackPtr;
CurFn->EncodedParamFramePtrReg = EncodedFramePtrReg::StackPtr;
} else {
- CurFn->HasFramePointer = true;
// If there is an FP, parameters are always relative to it.
CurFn->EncodedParamFramePtrReg = EncodedFramePtrReg::FramePtr;
if (CurFn->HasStackRealignment) {