Skip to content

Commit

Permalink
[mlir] Remove setRelaxELFRelocations. NFC
Browse files Browse the repository at this point in the history
The option is always true (see 2aedfdd)
and the MCAsmInfo option is going away in favor of MCTargetOptions.
  • Loading branch information
MaskRay committed Mar 7, 2024
1 parent e63ea9d commit 886ecb3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion mlir/lib/Dialect/GPU/Transforms/SerializeToHsaco.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,6 @@ LogicalResult SerializeToHsacoPass::assembleIsa(const std::string &isa,
target->createMCRegInfo(this->triple));
std::unique_ptr<llvm::MCAsmInfo> mai(
target->createMCAsmInfo(*mri, this->triple, mcOptions));
mai->setRelaxELFRelocations(true);
std::unique_ptr<llvm::MCSubtargetInfo> sti(
target->createMCSubtargetInfo(this->triple, this->chip, this->features));

Expand Down
1 change: 0 additions & 1 deletion mlir/lib/Target/LLVM/ROCDL/Target.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@ SerializeGPUModuleBase::assembleIsa(StringRef isa) {
target->createMCRegInfo(targetTriple));
std::unique_ptr<llvm::MCAsmInfo> mai(
target->createMCAsmInfo(*mri, targetTriple, mcOptions));
mai->setRelaxELFRelocations(true);
std::unique_ptr<llvm::MCSubtargetInfo> sti(
target->createMCSubtargetInfo(targetTriple, chip, features));

Expand Down

0 comments on commit 886ecb3

Please sign in to comment.