hanchenye-llvm-project/llvm
Nico Weber 04347d848d Make SourceManager::createFileID(UnownedTag, ...) take a const llvm::MemoryBuffer*
Requires making the llvm::MemoryBuffer* stored by SourceManager const,
which in turn requires making the accessors for that return const
llvm::MemoryBuffer*s and updating all call sites.

The original motivation for this was to use it and fix the TODO in
CodeGenAction.cpp's ConvertBackendLocation() by using the UnownedTag
version of createFileID, and since llvm::SourceMgr* hands out a const
llvm::MemoryBuffer* this is required. I'm not sure if fixing the TODO
this way actually works, but this seems like a good change on its own
anyways.

No intended behavior change.

Differential Revision: https://reviews.llvm.org/D60247

llvm-svn: 357724
2019-04-04 21:06:41 +00:00
..
benchmarks
bindings
cmake [llvm] [cmake] Add additional headers only if they exist 2019-04-04 14:21:38 +00:00
docs AMDGPU: Remove dx10-clamp from subtarget features 2019-03-29 19:14:54 +00:00
examples
include Make SourceManager::createFileID(UnownedTag, ...) take a const llvm::MemoryBuffer* 2019-04-04 21:06:41 +00:00
lib Revert [X86] When using Win64 ABI, exit with error if SSE is disabled for varargs 2019-04-04 19:05:48 +00:00
projects
resources
runtimes
test Revert [X86] When using Win64 ABI, exit with error if SSE is disabled for varargs 2019-04-04 19:05:48 +00:00
tools llvm-dwarfdump: Support alternative architecture names in the -arch filter 2019-04-04 15:48:40 +00:00
unittests [codeview] Remove Type member from CVRecord 2019-04-04 00:28:48 +00:00
utils gn build: Merge r357663 2019-04-04 02:08:10 +00:00
.arcconfig
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt Moved everything SMT-related to LLVM and updated the cmake scripts. 2019-03-25 17:47:45 +00:00
CODE_OWNERS.TXT
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.