diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-04-19 04:55:25 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-04-19 04:55:25 +0000 |
| commit | ed8fdb2a0e9503abbac7c0927d2915cd8bac03d2 (patch) | |
| tree | ada4253e3e564ec1531ca53c5eab3b9fb329f485 /llvm/tools | |
| parent | 51a9bd2e110f43eb9df14e1daffd89fd0332b9f0 (diff) | |
| download | bcm5719-llvm-ed8fdb2a0e9503abbac7c0927d2915cd8bac03d2.tar.gz bcm5719-llvm-ed8fdb2a0e9503abbac7c0927d2915cd8bac03d2.zip | |
IR: Rename API for enabling ODR uniquing of DITypes, NFC
As per David's review, rename everything in the new API for ODR type
uniquing of debug info.
ensureDITypeMap => enableDebugTypeODRUniquing
destroyDITypeMap => disableDebugTypeODRUniquing
hasDITypeMap => isODRUniquingDebugTypes
llvm-svn: 266713
Diffstat (limited to 'llvm/tools')
| -rw-r--r-- | llvm/tools/gold/gold-plugin.cpp | 4 | ||||
| -rw-r--r-- | llvm/tools/llvm-link/llvm-link.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp index 9a78c56b96a..1c78d2fc745 100644 --- a/llvm/tools/gold/gold-plugin.cpp +++ b/llvm/tools/gold/gold-plugin.cpp @@ -1114,7 +1114,7 @@ static void thinLTOBackendTask(claimed_file &F, const void *View, raw_fd_ostream *OS, unsigned TaskID) { // Need to use a separate context for each task LLVMContext Context; - Context.ensureDITypeMap(); // Merge debug info types. + Context.enableDebugTypeODRUniquing(); // Merge debug info types. Context.setDiagnosticHandler(diagnosticHandlerForContext, nullptr, true); std::unique_ptr<llvm::Module> NewModule(new llvm::Module(File.name, Context)); @@ -1236,7 +1236,7 @@ static ld_plugin_status allSymbolsReadHook(raw_fd_ostream *ApiFile) { } LLVMContext Context; - Context.ensureDITypeMap(); // Merge debug info types. + Context.enableDebugTypeODRUniquing(); // Merge debug info types. Context.setDiagnosticHandler(diagnosticHandlerForContext, nullptr, true); std::unique_ptr<Module> Combined(new Module("ld-temp.o", Context)); diff --git a/llvm/tools/llvm-link/llvm-link.cpp b/llvm/tools/llvm-link/llvm-link.cpp index 2dac8eabaee..73ac8727e71 100644 --- a/llvm/tools/llvm-link/llvm-link.cpp +++ b/llvm/tools/llvm-link/llvm-link.cpp @@ -342,7 +342,7 @@ int main(int argc, char **argv) { cl::ParseCommandLineOptions(argc, argv, "llvm linker\n"); if (!DisableDITypeMap) - Context.ensureDITypeMap(); + Context.enableDebugTypeODRUniquing(); auto Composite = make_unique<Module>("llvm-link", Context); Linker L(*Composite); |

