llvm-project/llvm
Greg Clayton 95e3956189 Add an Offset field to the SourceLocation for LookupResult objects.
Summary:
The Offset provides the offset within the function in a SourceLocation struct. This allows us to show the byte offset within a function. We also track offsets within inline functions as well. Updated the lookup tests to verify the offset for functions and inline functions.

0x1000: main + 32 @ /tmp/main.cpp:45

Reviewers: labath, aadsm, serhiy.redko, jankratochvil, xiaobai, wallace, aprantl, JDevlieghere

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D74680
2020-02-19 16:12:32 -08:00
..
benchmarks
bindings Rework go bindings so that validation works fine 2020-02-13 14:13:03 +01:00
cmake [CMake] Only detect the linker once in AddLLVM.cmake 2020-02-19 13:53:38 -05:00
docs [AMDGPU] AMDGPUUsage define call convention ABI 2020-02-19 15:56:19 -05:00
examples [ORC] Add generic initializer/deinitializer support. 2020-02-19 13:59:32 -08:00
include Add an Offset field to the SourceLocation for LookupResult objects. 2020-02-19 16:12:32 -08:00
lib Add an Offset field to the SourceLocation for LookupResult objects. 2020-02-19 16:12:32 -08:00
projects
resources
runtimes [runtimes] Add umbrella targets for runtimes 2020-02-12 09:46:14 -08:00
test [JITLink] Fix testcase for main JITDylib rename in 85fb997659. 2020-02-19 14:58:13 -08:00
tools [ORC] Add generic initializer/deinitializer support. 2020-02-19 13:59:32 -08:00
unittests Add an Offset field to the SourceLocation for LookupResult objects. 2020-02-19 16:12:32 -08:00
utils [gn build] Port 85fb997659 2020-02-19 22:58:29 +00:00
.arcconfig
.clang-format
.clang-tidy - Update .clang-tidy to ignore parameters of main like functions for naming violations in clang and llvm directory 2020-01-31 16:49:45 +00:00
.gitattributes
.gitignore Continue removing llgo. 2020-02-10 10:33:58 -08:00
CMakeLists.txt Fix integration of pass plugins with llvm dylib 2020-02-13 14:18:08 +01:00
CODE_OWNERS.TXT Continue removing llgo. 2020-02-10 10:33:58 -08:00
CREDITS.TXT
LICENSE.TXT
LLVMBuild.txt
README.txt
RELEASE_TESTERS.TXT
configure
llvm.spec.in

README.txt

The LLVM Compiler Infrastructure
================================

This directory and its subdirectories contain source code for LLVM,
a toolkit for the construction of highly optimized compilers,
optimizers, and runtime environments.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the documentation provided in docs/ for further
assistance with LLVM, and in particular docs/GettingStarted.rst for getting
started with LLVM and docs/README.txt for an overview of LLVM's
documentation setup.

If you are writing a package for LLVM, see docs/Packaging.rst for our
suggestions.