<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/bolt/lib/Core/DebugData.cpp, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/'/>
<entry>
<title>[BOLT] Replace LLVM_ATTRIBUTE_UNUSED with [[maybe_unused]] (NFC) (#163700)</title>
<updated>2025-10-16T20:06:58+00:00</updated>
<author>
<name>Kazu Hirata</name>
<email>kazu@google.com</email>
</author>
<published>2025-10-16T20:06:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=9be674420db90f68a7a00bd41d746f28b1d6a26a'/>
<id>9be674420db90f68a7a00bd41d746f28b1d6a26a</id>
<content type='text'>
This patch replaces LLVM_ATTRIBUTE_UNUSED with [[maybe_unused]],
introduced as part of C++17.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch replaces LLVM_ATTRIBUTE_UNUSED with [[maybe_unused]],
introduced as part of C++17.</pre>
</div>
</content>
</entry>
<entry>
<title>[bolt] Fix typos discovered by codespell (#124726)</title>
<updated>2025-10-14T12:45:40+00:00</updated>
<author>
<name>Christian Clauss</name>
<email>cclauss@me.com</email>
</author>
<published>2025-10-14T12:45:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=0fc05aa1c6d76a1830f2cf9227e15b168ccc1c08'/>
<id>0fc05aa1c6d76a1830f2cf9227e15b168ccc1c08</id>
<content type='text'>
https://github.com/codespell-project/codespell
```bash
codespell bolt --skip="*.yaml,Maintainers.txt" --write-changes \
    --ignore-words-list=acount,alledges,ans,archtype,defin,iself,mis,mmaped,othere,outweight,vas
```</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/codespell-project/codespell
```bash
codespell bolt --skip="*.yaml,Maintainers.txt" --write-changes \
    --ignore-words-list=acount,alledges,ans,archtype,defin,iself,mis,mmaped,othere,outweight,vas
```</pre>
</div>
</content>
</entry>
<entry>
<title>[BOLT] Fix debug line emission for functions in multiple compilation units (#151230)</title>
<updated>2025-09-11T17:41:11+00:00</updated>
<author>
<name>Grigory Pastukhov</name>
<email>99913765+grigorypas@users.noreply.github.com</email>
</author>
<published>2025-09-11T17:41:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=8c0f3b6e8f8db76e4ef47f38fb7b32ba9be1913b'/>
<id>8c0f3b6e8f8db76e4ef47f38fb7b32ba9be1913b</id>
<content type='text'>
This patch fixes a bug in BOLT's debug line emission where functions
that belong to multiple compilation units (such as inline functions in
header files) were not handled correctly. Previously, BOLT incorrectly
assumed that a binary function could belong to only one compilation
unit, leading to incomplete or incorrect debug line information.

### **Problem**

When a function appears in multiple compilation units (common scenarios
include):

*   Template instantiated functions
* Inline functions defined in header files included by multiple source
files

BOLT would only emit debug line information for one compilation unit,
losing debug information for other CUs where the function was compiled.
This resulted in incomplete debugging information and could cause
debuggers to fail to set breakpoints or show incorrect source locations.

### **Root Cause**

The issue was in BOLT's assumption that each binary function maps to
exactly one compilation unit. However, when the same function (e.g., an
inline function from a header) is compiled into multiple object files,
it legitimately belongs to multiple CUs in the final binary.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch fixes a bug in BOLT's debug line emission where functions
that belong to multiple compilation units (such as inline functions in
header files) were not handled correctly. Previously, BOLT incorrectly
assumed that a binary function could belong to only one compilation
unit, leading to incomplete or incorrect debug line information.

### **Problem**

When a function appears in multiple compilation units (common scenarios
include):

*   Template instantiated functions
* Inline functions defined in header files included by multiple source
files

BOLT would only emit debug line information for one compilation unit,
losing debug information for other CUs where the function was compiled.
This resulted in incomplete debugging information and could cause
debuggers to fail to set breakpoints or show incorrect source locations.

### **Root Cause**

The issue was in BOLT's assumption that each binary function maps to
exactly one compilation unit. However, when the same function (e.g., an
inline function from a header) is compiled into multiple object files,
it legitimately belongs to multiple CUs in the final binary.</pre>
</div>
</content>
</entry>
<entry>
<title>[BOLT] Remove unused local variables (NFC) (#140421)</title>
<updated>2025-05-18T00:43:29+00:00</updated>
<author>
<name>Kazu Hirata</name>
<email>kazu@google.com</email>
</author>
<published>2025-05-18T00:43:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=d08833f23fc8b25e1c3ef88274aa12f330601932'/>
<id>d08833f23fc8b25e1c3ef88274aa12f330601932</id>
<content type='text'>
While I'm at it, this patch removes GetExecutablePath, which becomes
unused after removing the sole use.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
While I'm at it, this patch removes GetExecutablePath, which becomes
unused after removing the sole use.</pre>
</div>
</content>
</entry>
<entry>
<title>[BOLT] Remove redundant calls to std::unique_ptr&lt;T&gt;::get (NFC) (#139403)</title>
<updated>2025-05-10T20:39:15+00:00</updated>
<author>
<name>Kazu Hirata</name>
<email>kazu@google.com</email>
</author>
<published>2025-05-10T20:39:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=d5b170c39bcd18f875d1bb5eb8800ed62a5fb47d'/>
<id>d5b170c39bcd18f875d1bb5eb8800ed62a5fb47d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[BOLT][DWARF][NFC] Fix DebugStrOffsetsWriter (#100672)</title>
<updated>2024-07-27T01:58:25+00:00</updated>
<author>
<name>Sayhaan Siddiqui</name>
<email>49014204+sayhaan@users.noreply.github.com</email>
</author>
<published>2024-07-27T01:58:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=9a3e66e314e698ffb08dba151bc098b6b8867c61'/>
<id>9a3e66e314e698ffb08dba151bc098b6b8867c61</id>
<content type='text'>
Fix DebugStrOffsetsWriter so updateAddressMap can't be called after it
is finalized.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix DebugStrOffsetsWriter so updateAddressMap can't be called after it
is finalized.</pre>
</div>
</content>
</entry>
<entry>
<title>[BOLT][DWARF][NFC] Refactor address writers (#98094)</title>
<updated>2024-07-16T06:03:43+00:00</updated>
<author>
<name>Sayhaan Siddiqui</name>
<email>49014204+sayhaan@users.noreply.github.com</email>
</author>
<published>2024-07-16T06:03:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=e140a8a3c83017c998a0dacbf9d128918852b429'/>
<id>e140a8a3c83017c998a0dacbf9d128918852b429</id>
<content type='text'>
Refactors address writers to create an instance for each CU and its DWO
CU.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Refactors address writers to create an instance for each CU and its DWO
CU.</pre>
</div>
</content>
</entry>
<entry>
<title>[BOLT][DWARF] Cleanup buffer initialization for DWO range writer (#97843)</title>
<updated>2024-07-10T18:35:40+00:00</updated>
<author>
<name>Sayhaan Siddiqui</name>
<email>49014204+sayhaan@users.noreply.github.com</email>
</author>
<published>2024-07-10T18:35:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=7e10ad99adb7d586f3ba3c8a9459d0e4fcaa0e33'/>
<id>7e10ad99adb7d586f3ba3c8a9459d0e4fcaa0e33</id>
<content type='text'>
Cleanup buffer initialization for DWO range writer instances to remove
empty buffer at the beginning.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Cleanup buffer initialization for DWO range writer instances to remove
empty buffer at the beginning.</pre>
</div>
</content>
</entry>
<entry>
<title>[BOLT][DWARF][NFC] Remove unnecessary SectionOffset (#97841)</title>
<updated>2024-07-09T23:36:49+00:00</updated>
<author>
<name>Sayhaan Siddiqui</name>
<email>49014204+sayhaan@users.noreply.github.com</email>
</author>
<published>2024-07-09T23:36:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=f137be30a4b6f49b86bfde6b5ee59463884916fc'/>
<id>f137be30a4b6f49b86bfde6b5ee59463884916fc</id>
<content type='text'>
Removes unnecessary SectionOffset variable from DebugData.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Removes unnecessary SectionOffset variable from DebugData.</pre>
</div>
</content>
</entry>
<entry>
<title>[BOLT][DWARF] Refactor legacy ranges writers (#96006)</title>
<updated>2024-07-03T21:50:40+00:00</updated>
<author>
<name>Sayhaan Siddiqui</name>
<email>49014204+sayhaan@users.noreply.github.com</email>
</author>
<published>2024-07-03T21:50:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=5828b04b0373f10fade7eefbeb181dc8ceb98422'/>
<id>5828b04b0373f10fade7eefbeb181dc8ceb98422</id>
<content type='text'>
Refactors legacy ranges writers to create a writer for each instance of
a DWO file.

We now write out everything into .debug_ranges after the all the DWO
files are processed. This also changes the order that ranges is written
out in, as before we wrote out while in the main CU processing loop and
we now iterate through the CU buckets created by partitionCUs, after the
main processing loop.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Refactors legacy ranges writers to create a writer for each instance of
a DWO file.

We now write out everything into .debug_ranges after the all the DWO
files are processed. This also changes the order that ranges is written
out in, as before we wrote out while in the main CU processing loop and
we now iterate through the CU buckets created by partitionCUs, after the
main processing loop.</pre>
</div>
</content>
</entry>
</feed>
