Skip to content

Commit 29bdf92

Browse files
committed
Address review comments, cleanup more remnants
1 parent 3ff2842 commit 29bdf92

File tree

13 files changed

+8
-28
lines changed

13 files changed

+8
-28
lines changed

clang/lib/CodeGen/CodeGenModule.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,13 +1054,12 @@ void CodeGenModule::Release() {
10541054
"StrictVTablePointersRequirement",
10551055
llvm::MDNode::get(VMContext, Ops));
10561056
}
1057-
if (getModuleDebugInfo()) {
1057+
if (getModuleDebugInfo())
10581058
// We support a single version in the linked module. The LLVM
10591059
// parser will drop debug info with a different version number
10601060
// (and warn about it, too).
10611061
getModule().addModuleFlag(llvm::Module::Warning, "Debug Info Version",
10621062
llvm::DEBUG_METADATA_VERSION);
1063-
}
10641063

10651064
// We need to record the widths of enums and wchar_t, so that we can generate
10661065
// the correct build attributes in the ARM backend. wchar_size is also used by

llvm/include/llvm/CodeGen/DbgEntityHistoryCalculator.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ namespace llvm {
2020
class DILocation;
2121
class LexicalScopes;
2222
class DINode;
23-
class MachineBasicBlock;
2423
class MachineFunction;
2524
class TargetRegisterInfo;
2625

llvm/include/llvm/CodeGen/SelectionDAG.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ class ProfileSummaryInfo;
8383
class SDDbgValue;
8484
class SDDbgOperand;
8585
class SDDbgLabel;
86-
class SDDbgKill;
8786
class SelectionDAG;
8887
class SelectionDAGTargetInfo;
8988
class TargetLibraryInfo;

llvm/include/llvm/CodeGen/TargetFrameLowering.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515

1616
#include "llvm/ADT/BitVector.h"
1717
#include "llvm/CodeGen/MachineBasicBlock.h"
18-
#include "llvm/IR/DebugInfoMetadata.h"
1918
#include "llvm/CodeGen/MachineOptimizationRemarkEmitter.h"
2019
#include "llvm/Support/TypeSize.h"
2120
#include <vector>
2221

2322
namespace llvm {
2423
class BitVector;
2524
class CalleeSavedInfo;
25+
class DIExpression;
2626
class MachineFunction;
2727
class RegScavenger;
2828

llvm/include/llvm/IR/DIBuilder.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -752,11 +752,6 @@ namespace llvm {
752752
DIGenericSubrange::BoundType UpperBound,
753753
DIGenericSubrange::BoundType Stride);
754754

755-
/// Create fragment, which represents the identity of a location
756-
/// description that can be used as the piece of another location
757-
/// description.
758-
DIFragment *createFragment();
759-
760755
/// Create a new descriptor for the specified variable.
761756
/// \param Context Variable scope.
762757
/// \param Name Name of the variable.

llvm/lib/CodeGen/RegAllocFast.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,6 @@ class RegAllocFastImpl {
338338

339339
void allocateInstruction(MachineInstr &MI);
340340
void handleDebugValue(MachineInstr &MI);
341-
void killDebugDefWithinBlock(MachineInstr &MI);
342341
void handleBundle(MachineInstr &MI);
343342

344343
bool usePhysReg(MachineInstr &MI, MCRegister PhysReg);

llvm/lib/IR/AutoUpgrade.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5008,8 +5008,7 @@ bool llvm::UpgradeDebugInfo(Module &M) {
50085008
}
50095009
}
50105010

5011-
bool VersionSupported = Version == DEBUG_METADATA_VERSION ||
5012-
Version == DEBUG_METADATA_VERSION_HETEROGENEOUS_DWARF;
5011+
bool VersionSupported = Version == DEBUG_METADATA_VERSION;
50135012
if (VersionSupported) {
50145013
bool BrokenDebugInfo = false;
50155014
if (verifyModule(M, &llvm::errs(), &BrokenDebugInfo))

llvm/lib/IR/DIBuilder.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -765,10 +765,6 @@ DIGenericSubrange *DIBuilder::getOrCreateGenericSubrange(
765765
ConvToMetadata(Stride));
766766
}
767767

768-
DIFragment *DIBuilder::createFragment() {
769-
return DIFragment::getDistinct(VMContext);
770-
}
771-
772768
DISubrangeType *DIBuilder::createSubrangeType(
773769
StringRef Name, DIFile *File, unsigned LineNo, DIScope *Scope,
774770
uint64_t SizeInBits, uint32_t AlignInBits, DINode::DIFlags Flags,

llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,12 +1317,6 @@ class AMDGPULowerModuleLDS {
13171317

13181318
performOptimizedStructLayout(LayoutFields);
13191319

1320-
struct DIExprVarInfo {
1321-
GlobalVariable *Var;
1322-
uint64_t Offset;
1323-
};
1324-
DenseMap<DIFragment *, DIExprVarInfo> Fragment2VarInfo;
1325-
13261320
struct DIExpressionVarInfo {
13271321
GlobalVariable *Var;
13281322
Metadata *DIVar;

llvm/test/CodeGen/Generic/llvm.dbg.def_kill-dag-isel.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
; RUN: not --crash llc -O0 -march=amdgcn -stop-after=finalize-isel < %s 2>&1 | FileCheck %s
1+
; RUN: llc -O0 -march=amdgcn -stop-after=finalize-isel < %s 2>&1 | FileCheck %s
22

3-
; CHECK: LLVM ERROR: unsupported DIExpr-based metadata
3+
; CHECK: warning: ignoring debug info with an invalid version (4) in <stdin>
44

55
target datalayout = "e-p:64:64-p1:64:64-p2:32:32-p3:32:32-p4:64:64-p5:32:32-p6:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64-S32-A5-G1-ni:7"
66
target triple = "amdgcn-amd-amdhsa"

0 commit comments

Comments
 (0)