[llvm] r297118 - Revert "AMDGPU: Set MCAsmInfo::PointerSize"

Konstantin Zhuravlyov via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 6 20:44:33 PST 2017


Author: kzhuravl
Date: Mon Mar  6 22:44:33 2017
New Revision: 297118

URL: http://llvm.org/viewvc/llvm-project?rev=297118&view=rev
Log:
Revert "AMDGPU: Set MCAsmInfo::PointerSize"

It breaks line tables because the patch is not complete, working on a complete one at the moment

This reverts commit r294031.

Removed:
    llvm/trunk/test/CodeGen/AMDGPU/basic-debug-info.ll
Modified:
    llvm/trunk/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCAsmInfo.cpp

Modified: llvm/trunk/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCAsmInfo.cpp?rev=297118&r1=297117&r2=297118&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCAsmInfo.cpp Mon Mar  6 22:44:33 2017
@@ -14,7 +14,6 @@
 using namespace llvm;
 
 AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(const Triple &TT) : MCAsmInfoELF() {
-  PointerSize = (TT.getArch() == Triple::amdgcn) ? 8 : 4;
   HasSingleParameterDotFile = false;
   //===------------------------------------------------------------------===//
   MinInstAlignment = 4;

Removed: llvm/trunk/test/CodeGen/AMDGPU/basic-debug-info.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/AMDGPU/basic-debug-info.ll?rev=297117&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/AMDGPU/basic-debug-info.ll (original)
+++ llvm/trunk/test/CodeGen/AMDGPU/basic-debug-info.ll (removed)
@@ -1,26 +0,0 @@
-; RUN: llc -march=amdgcn -mtriple=amdgcn-unknown-amdhsa < %s | FileCheck %s
-
-; FIXME: Should be .byte 8 for pointer size
-
-; CHECK-LABEL: {{^}}basic_debug_info:
-; CHECK: .section	.debug_info
-; CHECK: .byte	4                               ; Address Size (in bytes)
-define void @basic_debug_info() #0 !dbg !4 {
-entry:
-  ret void, !dbg !9
-}
-
-attributes #0 = { nounwind }
-
-!llvm.dbg.cu = !{!0}
-!llvm.module.flags = !{!7, !8}
-
-!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2)
-!1 = !DIFile(filename: "/tmp/basic-debug-info.cl", directory: "/Users/matt/src/llvm/build_debug")
-!2 = !{}
-!4 = distinct !DISubprogram(name: "basic_debug_info", scope: !1, file: !1, line: 1, type: !5, isLocal: false, isDefinition: true, scopeLine: 2, isOptimized: false, unit: !0, variables: !2)
-!5 = !DISubroutineType(types: !6)
-!6 = !{null}
-!7 = !{i32 2, !"Dwarf Version", i32 4}
-!8 = !{i32 2, !"Debug Info Version", i32 3}
-!9 = !DILocation(line: 4, column: 1, scope: !4)




More information about the llvm-commits mailing list