llvm-project/clang/lib/Frontend
Ben Dunbobbin ae9231ca2a Reland - [Clang] Add the ability to map DLL storage class to visibility
415f7ee883 had LIT test failures on any build where the clang executable
was not called "clang". I have adjusted the LIT CHECKs to remove the
binary name to fix this.

Original commit message:

For PlayStation we offer source code compatibility with
Microsoft's dllimport/export annotations; however, our file
format is based on ELF.

To support this we translate from DLL storage class to ELF
visibility at the end of codegen in Clang.

Other toolchains have used similar strategies (e.g. see the
documentation for this ARM toolchain:

https://developer.arm.com/documentation/dui0530/i/migrating-from-rvct-v3-1-to-rvct-v4-0/changes-to-symbol-visibility-between-rvct-v3-1-and-rvct-v4-0)

This patch adds the ability to perform this translation. Options
are provided to support customizing the mapping behaviour.

Differential Revision: https://reviews.llvm.org/D89970
2020-11-02 23:24:49 +00:00
..
Rewrite [clang] RewriteObjCClassMetaData - remove superfluous null pointer check. NFCI. 2020-10-27 13:14:55 +00:00
ASTConsumers.cpp [clang][NFC] Store a pointer to the ASTContext in ASTDumper and TextNodeDumper 2020-07-03 13:59:22 +01:00
ASTMerge.cpp
ASTUnit.cpp [clang][Frontend] Add missing error handling 2020-10-22 14:14:19 -07:00
CMakeLists.txt [CMake] Make `intrinsics_gen` dependency unconditional. 2020-07-17 16:43:17 -07:00
ChainedDiagnosticConsumer.cpp
ChainedIncludesSource.cpp clang/Modules: Finish renaming CompilerInstance::ModuleManager, NFC. 2020-02-21 13:56:50 -08:00
CompilerInstance.cpp ContentCache: Simplify by always owning the MemoryBuffer 2020-10-20 21:03:53 -04:00
CompilerInvocation.cpp Reland - [Clang] Add the ability to map DLL storage class to visibility 2020-11-02 23:24:49 +00:00
CreateInvocationFromCommandLine.cpp [flang][driver] Add the new flang compiler and frontend drivers 2020-09-11 10:55:54 +01:00
DependencyFile.cpp SourceManager: getFileEntryRefForID => getNonBuiltinFilenameForID, NFC 2020-10-22 22:20:50 -04:00
DependencyGraph.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
DiagnosticRenderer.cpp
FrontendAction.cpp clang/Frontend: Use MemoryBufferRef in FrontendInputFile (and remove SourceManager::getBuffer) 2020-10-20 13:35:46 -04:00
FrontendActions.cpp clang/Frontend: Use MemoryBufferRef in FrontendInputFile (and remove SourceManager::getBuffer) 2020-10-20 13:35:46 -04:00
FrontendOptions.cpp Recognize *.hxx as a C++ header extension, like *.hpp. 2020-06-08 11:50:34 +02:00
FrontendTiming.cpp
HeaderIncludeGen.cpp clang-cl: Add a `/showIncludes:user` flag. 2020-02-25 09:43:52 -05:00
InitHeaderSearch.cpp [clang][Driver] Implement AddClangSystemIncludeArgs and HasNativeLLVMSupport for the OpenBSD clang driver. 2020-08-23 20:08:40 -04:00
InitPreprocessor.cpp [OpenCL] Add new compilation mode for OpenCL 3.0. 2020-10-09 15:28:38 +01:00
InterfaceStubFunctionsConsumer.cpp [llvm][clang][IFS] Enhancing the llvm-ifs yaml format for symbol lists. 2020-04-01 10:49:06 -04:00
LayoutOverrideSource.cpp
LogDiagnosticPrinter.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
ModuleDependencyCollector.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
MultiplexConsumer.cpp [AST] Add missing MultiplexConsumer::CompleteExternalDeclaration 2019-12-22 19:00:48 -08:00
PrecompiledPreamble.cpp clang/Basic: Replace SourceManager::getMemoryBufferForFile, NFC 2020-10-20 17:01:23 -04:00
PrintPreprocessedOutput.cpp
SerializedDiagnosticPrinter.cpp CrashTracer: clang at clang: llvm::BitstreamWriter::ExitBlock 2020-07-09 20:27:33 -07:00
SerializedDiagnosticReader.cpp
TestModuleFileExtension.cpp
TestModuleFileExtension.h
TextDiagnostic.cpp [clang] Fix the canonicalization of paths in -fdiagnostics-absolute-paths 2019-12-20 09:16:33 +01:00
TextDiagnosticBuffer.cpp Fix more implicit conversions. Getting closer to having clang working with gcc 5 again 2020-01-29 02:57:59 +01:00
TextDiagnosticPrinter.cpp [clang] Fix incorrect call to TextDiagnostic::printDiagnosticMessage 2020-09-21 09:41:39 +01:00
VerifyDiagnosticConsumer.cpp Lexer: Update the Lexer to use MemoryBufferRef, NFC 2020-10-19 19:10:21 -04:00