Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Rework adding function names to the dwarf accelerator tables, allow | Eric Christopher | 2011-11-10 | 1 | -67/+71 | |
| | | | | | | multiple dies per function and support C++ basenames. llvm-svn: 144304 | |||||
* | Add comments. | Benjamin Kramer | 2011-11-09 | 1 | -1/+2 | |
| | | | | llvm-svn: 144194 | |||||
* | Take advantage of the zero byte in StringMap when emitting dwarf stringpool ↵ | Benjamin Kramer | 2011-11-09 | 1 | -2/+3 | |
| | | | | | | entries. llvm-svn: 144184 | |||||
* | Remove the pubnames section, no one consumes it. | Eric Christopher | 2011-11-09 | 1 | -58/+0 | |
| | | | | llvm-svn: 144169 | |||||
* | Also add the linkage name to the name accelerator tables if it exists | Eric Christopher | 2011-11-08 | 1 | -2/+14 | |
| | | | | | | and is different than the normal name. llvm-svn: 144130 | |||||
* | Add the base ObjC method name to the names lookup table as well. | Eric Christopher | 2011-11-08 | 1 | -0/+6 | |
| | | | | llvm-svn: 144105 | |||||
* | Add all completed and named types to the dwarf type accelerator tables. | Eric Christopher | 2011-11-07 | 1 | -2/+1 | |
| | | | | llvm-svn: 144027 | |||||
* | Use StringRef::startswith to do some string comparisons. | Eric Christopher | 2011-11-07 | 1 | -5/+2 | |
| | | | | llvm-svn: 143982 | |||||
* | Allow for the case where the name of the subprogram is "". | Eric Christopher | 2011-11-07 | 1 | -0/+1 | |
| | | | | | | Fixes a self-host error. llvm-svn: 143970 | |||||
* | Remove unnecessary addition to API. Replace with something much simpler. | Eric Christopher | 2011-11-07 | 1 | -8/+0 | |
| | | | | llvm-svn: 143925 | |||||
* | Add the support code to enable the dwarf accelerator tables. Upcoming patches | Eric Christopher | 2011-11-07 | 1 | -0/+168 | |
| | | | | | | | | to fix the types section (all types, not just global types), and testcases. The code to do the final emission is disabled by default. llvm-svn: 143923 | |||||
* | Expose a way to get the beginning of the dwarf string section. | Eric Christopher | 2011-11-07 | 1 | -12/+19 | |
| | | | | llvm-svn: 143920 | |||||
* | Fix up comment. | Eric Christopher | 2011-11-07 | 1 | -1/+1 | |
| | | | | llvm-svn: 143919 | |||||
* | Emit declarations before definitions if they are available. This causes ↵ | Rafael Espindola | 2011-11-04 | 1 | -6/+18 | |
| | | | | | | | | DW_AT_specification to point back in the file in the included testcase. Fixes PR11300. llvm-svn: 143726 | |||||
* | Don't emit a directory entry for the value in DW_AT_comp_dir, that is always | Nick Lewycky | 2011-11-02 | 1 | -4/+8 | |
| | | | | | | implied by directory index zero. llvm-svn: 143570 | |||||
* | Teach our Dwarf emission to use the string pool. | Nick Lewycky | 2011-10-27 | 1 | -6/+9 | |
| | | | | llvm-svn: 143097 | |||||
* | Reflow lines, fix comments for doxygen style, fix whitespace. No functionality | Nick Lewycky | 2011-10-26 | 1 | -15/+11 | |
| | | | | | | change. llvm-svn: 143074 | |||||
* | Minor style cleanup, no functionality change. | Nick Lewycky | 2011-10-17 | 1 | -3/+2 | |
| | | | | llvm-svn: 142307 | |||||
* | Add support for a new extension to the .file directive: | Nick Lewycky | 2011-10-17 | 1 | -15/+13 | |
| | | | | | | | | | | .file filenumber "directory" "filename" This removes one join+split of the directory+filename in MC internals. Because bitcode files have independent fields for directory and filenames in debug info, this patch may change the .o files written by existing .bc files. llvm-svn: 142300 | |||||
* | Add a new wrapper node for a DILexicalBlock that encapsulates it and a | Eric Christopher | 2011-10-11 | 1 | -0/+4 | |
| | | | | | | | | | | | | | file. Since it should only be used when necessary propagate it through the backend code generation and tweak testcases accordingly. This helps with code like in clang's test/CodeGen/debug-info-line.c where we have multiple #line directives within a single lexical block and want to generate only a single block that contains each file change. Part of rdar://10246360 llvm-svn: 141729 | |||||
* | Typo. | Eric Christopher | 2011-10-03 | 1 | -1/+1 | |
| | | | | llvm-svn: 141004 | |||||
* | Do not use named md nodes to track variables that are completely optimized. ↵ | Devang Patel | 2011-08-19 | 1 | -36/+23 | |
| | | | | | | This does not scale while doing LTO with debug info. New approach is to include list of variables in the subprogram info directly. llvm-svn: 138145 | |||||
* | Eliminate unnecessary forwarding function. | Devang Patel | 2011-08-18 | 1 | -16/+3 | |
| | | | | llvm-svn: 138006 | |||||
* | Until now all debug info MDNodes referred to a root MDNode, a compile unit. ↵ | Devang Patel | 2011-08-16 | 1 | -91/+82 | |
| | | | | | | | | This simplified handling of these needs in dwarf writer. However, one side effect of this is that during link time optimization all these MDNodes are _not_ uniqued. In other words there will be N number of MDNodes describing "int", "char" and all other types, which would suddenly grow when each object file starts using libraries like STL. MDNodes graph structure such that compiler unit keeps track of important MDNodes and update dwarf writer to process mdnodes top-down instead of bottom up. llvm-svn: 137778 | |||||
* | Remove unnecessary version check. | Devang Patel | 2011-08-16 | 1 | -2/+1 | |
| | | | | llvm-svn: 137728 | |||||
* | Refactor. | Devang Patel | 2011-08-15 | 1 | -49/+60 | |
| | | | | llvm-svn: 137689 | |||||
* | Continue to hoist uses of getCompileUnit() up. The goal is to get rid of ↵ | Devang Patel | 2011-08-15 | 1 | -19/+22 | |
| | | | | | | uses of getCompileUnit(). llvm-svn: 137683 | |||||
* | This is somewhat déjà-vu, but avoid using getCompileUnit() as much as ↵ | Devang Patel | 2011-08-15 | 1 | -11/+11 | |
| | | | | | | possible. llvm-svn: 137668 | |||||
* | Refactor. Variables are part of compile unit so let CompileUnit create new ↵ | Devang Patel | 2011-08-15 | 1 | -122/+17 | |
| | | | | | | variable. llvm-svn: 137663 | |||||
* | There is no need to maintain a set to keep track of variables that use ↵ | Devang Patel | 2011-08-15 | 1 | -4/+2 | |
| | | | | | | location expressions. In such cases, AT_location attribute's value will be a label. llvm-svn: 137659 | |||||
* | Fix warning. | Devang Patel | 2011-08-15 | 1 | -1/+1 | |
| | | | | llvm-svn: 137658 | |||||
* | Simplify. Let DbgVariable keep track of variable's DBG_VALUE machine ↵ | Devang Patel | 2011-08-15 | 1 | -39/+16 | |
| | | | | | | instruction. llvm-svn: 137656 | |||||
* | Simplify mapping to variable from its abstract variable info. | Devang Patel | 2011-08-15 | 1 | -24/+14 | |
| | | | | | | When a variable is inlined multiple places, abstract variable keeps name, location, type etc.. info and all other concreate instances of the variable directly refers to abstract variable. llvm-svn: 137637 | |||||
* | Refactor. | Devang Patel | 2011-08-15 | 1 | -5/+2 | |
| | | | | llvm-svn: 137632 | |||||
* | Refactor. | Devang Patel | 2011-08-15 | 1 | -14/+2 | |
| | | | | llvm-svn: 137631 | |||||
* | Refactor. Global variables are part of compile unit so let CompileUnit ↵ | Devang Patel | 2011-08-15 | 1 | -129/+2 | |
| | | | | | | create new global variable. llvm-svn: 137621 | |||||
* | Refactor. A subprogram is part of compile unit so let CompileUnit construct ↵ | Devang Patel | 2011-08-15 | 1 | -107/+8 | |
| | | | | | | new subprogram. llvm-svn: 137618 | |||||
* | Use ArrayRef. | Devang Patel | 2011-08-12 | 1 | -6/+6 | |
| | | | | llvm-svn: 137485 | |||||
* | Plug a memory leak. | Benjamin Kramer | 2011-08-11 | 1 | -3/+3 | |
| | | | | llvm-svn: 137321 | |||||
* | Stay within 80 columns. | Devang Patel | 2011-08-10 | 1 | -18/+28 | |
| | | | | llvm-svn: 137283 | |||||
* | Distinguish between two copies of one inlined variable. Take 2. | Devang Patel | 2011-08-10 | 1 | -3/+4 | |
| | | | | llvm-svn: 137253 | |||||
* | Revert unintentional parts of previous check-in. | Devang Patel | 2011-08-10 | 1 | -5/+2 | |
| | | | | llvm-svn: 137249 | |||||
* | Start using LexicalScopes utility. No intetional functionality change. | Devang Patel | 2011-08-10 | 1 | -488/+101 | |
| | | | | llvm-svn: 137246 | |||||
* | Simplify by creating parent first. | Devang Patel | 2011-08-08 | 1 | -19/+14 | |
| | | | | llvm-svn: 137056 | |||||
* | Temporarily revert r135528 which distinguishes between two copies of one | Chandler Carruth | 2011-08-05 | 1 | -6/+2 | |
| | | | | | | | | | | | | | | | | | | | inlined variable, based on the discussion in PR10542. This explodes the runtime of several passes down the pipeline due to a large number of "copies" remaining live across a large function. This only shows up with both debug and opt, but when it does it creates a many-minute compile when self-hosting LLVM+Clang. There are several other cases that show these types of regressions. All of this is tracked in PR10542, and progress is being made on fixing the issue. Once its addressed, the re-instated, but until then this restores the performance for self-hosting and other opt+debug builds. Devang, let me know if this causes any trouble, or impedes fixing it in any way, and thanks for working on this! llvm-svn: 136953 | |||||
* | Some revisions to Devang's change r136759 for merged global debug info. | Bob Wilson | 2011-08-03 | 1 | -23/+9 | |
| | | | | llvm-svn: 136802 | |||||
* | Use byte offset, instead of element number, to access merged global. | Devang Patel | 2011-08-03 | 1 | -3/+21 | |
| | | | | llvm-svn: 136759 | |||||
* | Fix a lot of typos, improve (but not necessarily fix) grammaros and reflow some | Nick Lewycky | 2011-07-29 | 1 | -23/+21 | |
| | | | | | | lines. No functionality change. llvm-svn: 136458 | |||||
* | Remove outdated FIXME comment. | Devang Patel | 2011-07-27 | 1 | -1/+0 | |
| | | | | llvm-svn: 136275 | |||||
* | It is quiet possible that inlined function body is split into multiple ↵ | Devang Patel | 2011-07-27 | 1 | -16/+41 | |
| | | | | | | chunks of consequtive instructions. But, there is not any way to describe this in .debug_inline accelerator table used by gdb. However, describe non contiguous ranges of inlined function body appropriately using AT_range of DW_TAG_inlined_subroutine debug info entry. llvm-svn: 136196 |