summaryrefslogtreecommitdiff
path: root/sys-devel/llvm/files/llvm-3.1-fix_debug_line_info.patch
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2012-11-21 13:57:05 +0200
committerGluzskiy Alexandr <sss123next@list.ru>2012-11-21 13:57:05 +0200
commit0672ebbe2a455152b6eaa2fc35327d4a8f738861 (patch)
tree381a9abbeacb8d53aa75716863e67e84f4e62803 /sys-devel/llvm/files/llvm-3.1-fix_debug_line_info.patch
parentfe1db5b4c5c1ba306799f3167948f90eadaf38fa (diff)
new file: sys-devel/llvm/files/cl-patches/0001-r600-Add-some-intrinsic-definitions.patch
new file: sys-devel/llvm/files/cl-patches/0002-r600-Add-get_global_size-and-get_local_size-intrinsi.patch new file: sys-devel/llvm/files/llvm-2.6-commandguide-nops.patch new file: sys-devel/llvm/files/llvm-2.7-nodoctargz.patch new file: sys-devel/llvm/files/llvm-2.8-alignof.patch new file: sys-devel/llvm/files/llvm-2.8-darwin8.patch new file: sys-devel/llvm/files/llvm-2.9-Operator.h-c++0x.patch new file: sys-devel/llvm/files/llvm-2.9-nodoctargz.patch new file: sys-devel/llvm/files/llvm-3.0-PPCCompilationCallbackC_static.patch new file: sys-devel/llvm/files/llvm-3.0-PPC_macro.patch new file: sys-devel/llvm/files/llvm-3.0-gold_LTO_link.patch new file: sys-devel/llvm/files/llvm-3.0-ocaml_install.patch new file: sys-devel/llvm/files/llvm-3.0-set_soname.patch new file: sys-devel/llvm/files/llvm-3.1-fix_debug_line_info.patch new file: sys-devel/llvm/files/llvm-3.1-ivybridge_support.patch new file: sys-devel/llvm/files/llvm-3.2-nodoctargz.patch new file: sys-devel/llvm/llvm-9999.ebuild
Diffstat (limited to 'sys-devel/llvm/files/llvm-3.1-fix_debug_line_info.patch')
-rw-r--r--sys-devel/llvm/files/llvm-3.1-fix_debug_line_info.patch65
1 files changed, 65 insertions, 0 deletions
diff --git a/sys-devel/llvm/files/llvm-3.1-fix_debug_line_info.patch b/sys-devel/llvm/files/llvm-3.1-fix_debug_line_info.patch
new file mode 100644
index 0000000..de2d46b
--- /dev/null
+++ b/sys-devel/llvm/files/llvm-3.1-fix_debug_line_info.patch
@@ -0,0 +1,65 @@
+From 737fdba46f2b2b7d39bc728d15ea2334c44779e0 Mon Sep 17 00:00:00 2001
+From: Ben Longbons <b.r.longbons@gmail.com>
+Date: Fri, 29 Jun 2012 12:58:34 -0700
+Subject: [PATCH] Revert "Patch to set is_stmt a little better for prologue
+ lines in a function."
+
+This meants that the debugger could find meaningful line information.
+
+This reverts commit 60b35f408bc3194e7ea4e96367c0b42dc5e7f850.
+---
+ lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 7 ++-----
+ test/DebugInfo/X86/ending-run.ll | 6 ++----
+ 2 files changed, 4 insertions(+), 9 deletions(-)
+
+diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+index 3e79a6d..24aedfb 100644
+--- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
++++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+@@ -1093,15 +1093,12 @@ void DwarfDebug::beginInstruction(const MachineInstr *MI) {
+ if (!MI->isDebugValue()) {
+ DebugLoc DL = MI->getDebugLoc();
+ if (DL != PrevInstLoc && (!DL.isUnknown() || UnknownLocations)) {
+- unsigned Flags = 0;
++ unsigned Flags = DWARF2_FLAG_IS_STMT;
+ PrevInstLoc = DL;
+ if (DL == PrologEndLoc) {
+ Flags |= DWARF2_FLAG_PROLOGUE_END;
+ PrologEndLoc = DebugLoc();
+ }
+- if (PrologEndLoc.isUnknown())
+- Flags |= DWARF2_FLAG_IS_STMT;
+-
+ if (!DL.isUnknown()) {
+ const MDNode *Scope = DL.getScope(Asm->MF->getFunction()->getContext());
+ recordSourceLine(DL.getLine(), DL.getCol(), Scope, Flags);
+@@ -1382,7 +1379,7 @@ void DwarfDebug::beginFunction(const MachineFunction *MF) {
+ MF->getFunction()->getContext());
+ recordSourceLine(FnStartDL.getLine(), FnStartDL.getCol(),
+ FnStartDL.getScope(MF->getFunction()->getContext()),
+- 0);
++ DWARF2_FLAG_IS_STMT);
+ }
+ }
+
+diff --git a/test/DebugInfo/X86/ending-run.ll b/test/DebugInfo/X86/ending-run.ll
+index 6935c47..0cd3de1 100644
+--- a/test/DebugInfo/X86/ending-run.ll
++++ b/test/DebugInfo/X86/ending-run.ll
+@@ -1,11 +1,9 @@
+ ; RUN: llc -mtriple=x86_64-apple-darwin %s -o %t -filetype=obj
+ ; RUN: llvm-dwarfdump %t | FileCheck %s
+
+-; Check that the line table starts at 7, not 4, but that the first
+-; statement isn't until line 8.
++; Check that the line table starts at 7, not 4.
+
+-; CHECK-NOT: 0x0000000000000000 7 0 1 0 is_stmt
+-; CHECK: 0x0000000000000000 7 0 1 0
++; CHECK: 0x0000000000000000 7 0 1 0 is_stmt
+ ; CHECK: 0x0000000000000004 8 18 1 0 is_stmt prologue_end
+
+ define i32 @callee(i32 %x) nounwind uwtable ssp {
+--
+1.7.10
+