LLVM-ADDR2LINE(1)

🌸 llvm-addr2line πŸ’… (LLVM manual page, bestie)

okay so you opened the man page for llvm-addr2line and honestly? icon behavior. this is the LLVM flavor of that whole tool family, and she's got range. let's get into it ✨


πŸŽ€ NAME πŸŽ€

llvm-addr2line β€” a drop-in replacement for addr2line. that's it, that's the whole vibe. no cap. πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

llvm-addr2line [options]

literally just the command and some options. she's low maintenance like that 🫢


✨ DESCRIPTION ✨

okay so here's the tea: llvm-addr2line is an alias for the llvm-symbolizer(1) tool (peep llvm-symbolizer.html) β€” same tool, but with different defaults. the whole goal is to make it a drop-in replacement for GNU's addr2line. main character energy fr fr πŸ‘‘

here are some of those differences, and yes bestie we're going through all of them:

  • llvm-addr2line interprets all addresses as hexadecimal and ignores an optional 0x prefix, whereas llvm-symbolizer attempts to determine the base from the literal's prefix and defaults to decimal if there is no prefix. so like… she just knows it's hex. confident queen πŸ’…
  • llvm-addr2line defaults not to print function names. use -f (link: llvm-symbolizer.html#llvm-symbolizer-opt-f) to enable that. it's giving "ask before you show me the function names" πŸ™ˆ
  • llvm-addr2line defaults not to demangle function names. use -C (link: llvm-symbolizer.html#llvm-symbolizer-opt-c) to switch the demangling on. mangled names stay mangled until you say otherwise, iykyk πŸ”₯
  • llvm-addr2line defaults not to print inlined frames. use -i (link: llvm-symbolizer.html#llvm-symbolizer-opt-i) to show inlined frames for a source code location in an inlined function. the inlined frames are literally right there but she's not gonna overshare 🌸
  • llvm-addr2line uses --output-style=GNU (link: llvm-symbolizer.html#llvm-symbolizer-opt-output-style) by default. GNU output style is her default outfit and she ate πŸ’€
  • llvm-addr2line parses options from the environment variable LLVM_ADDR2LINE_OPTS instead of from LLVM_SYMBOLIZER_OPTS. not me checking the right env var 😭 this is a whole different group chat

πŸ’œ SEE ALSO πŸ’œ

  • llvm-symbolizer(1) β€” the actual tool behind the alias, go say hi (llvm-symbolizer.html) 🧚

πŸ“ Author πŸ“

Maintained by the LLVM Team (https://llvm.org/). they're the parents of this whole operation, show some respect 🫢


2003-2026, LLVM Project β€” that's a long run and honestly? iconic 🌈


and that's the page, bestie. no gatekeeping, no missing flags. slay πŸ’…βœ¨

okay bye, and remember: the manual name is LLVM-ADDR2LINE(1) from the LLVM source, dated 2026-09-09, and the page footer says 15 β€” that's the version-and-date moment, so like… mark your calendar, periodt πŸŽ€πŸ’–

πŸ“¦ where this page comes from