summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2018-02-02 15:06:09 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2018-02-02 15:06:09 +0000
commit0410afd1a37e3e77013123ba6ba68f4a5258a532 (patch)
tree40b4b343dc88c49f2ac2573595977d70939a027e /llvm/lib/Transforms
parent1cb9bc6b6ceaf0ac33b19dbf6c599e4e235734d1 (diff)
downloadbcm5719-llvm-0410afd1a37e3e77013123ba6ba68f4a5258a532.tar.gz
bcm5719-llvm-0410afd1a37e3e77013123ba6ba68f4a5258a532.zip
[ThinLTO] - Add comment. NFC.
Was requested during review of D42798. llvm-svn: 324095
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/IPO/FunctionImport.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionImport.cpp b/llvm/lib/Transforms/IPO/FunctionImport.cpp
index 408d1819bde..37c4c21578c 100644
--- a/llvm/lib/Transforms/IPO/FunctionImport.cpp
+++ b/llvm/lib/Transforms/IPO/FunctionImport.cpp
@@ -629,6 +629,8 @@ void llvm::convertToDeclaration(GlobalValue &GV) {
// need to add support here for creating either a function or
// variable declaration, and return the new GlobalValue* for
// the caller to use.
+ // Support of dropping aliases is required for correct dead code
+ // elimination performed in thin LTO backends (see 'dropDeadSymbols').
llvm_unreachable("Expected function or variable");
}
OpenPOWER on IntegriCloud