aboutsummaryrefslogtreecommitdiff
path: root/BitWriter_2_9_func
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2012-08-23 00:22:25 -0700
committerStephen Hines <srhines@google.com>2012-08-23 16:36:27 -0700
commit376dc03c6bb42050ddd8a56d1a3e3c6f5d6f6e1d (patch)
treed3ad0346ed5ee77450cf022b8b74d879bad4d4cd /BitWriter_2_9_func
parentd7704b7dbdc0550e1688166945a8f239f18b81b1 (diff)
downloadslang-376dc03c6bb42050ddd8a56d1a3e3c6f5d6f6e1d.tar.gz
Fix up slang for LLVM upstream merge to r162314.
Change-Id: Id3471daa7eee87c19c46dab8ffd972d52183440a
Diffstat (limited to 'BitWriter_2_9_func')
-rw-r--r--BitWriter_2_9_func/BitcodeWriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/BitWriter_2_9_func/BitcodeWriter.cpp b/BitWriter_2_9_func/BitcodeWriter.cpp
index d2aa71f..a8a0750 100644
--- a/BitWriter_2_9_func/BitcodeWriter.cpp
+++ b/BitWriter_2_9_func/BitcodeWriter.cpp
@@ -352,7 +352,6 @@ static void WriteTypeTable(const llvm_2_9_func::ValueEnumerator &VE,
static unsigned getEncodedLinkage(const GlobalValue *GV) {
switch (GV->getLinkage()) {
- default: llvm_unreachable("Invalid linkage!");
case GlobalValue::ExternalLinkage: return 0;
case GlobalValue::WeakAnyLinkage: return 1;
case GlobalValue::AppendingLinkage: return 2;
@@ -368,8 +367,9 @@ static unsigned getEncodedLinkage(const GlobalValue *GV) {
case GlobalValue::AvailableExternallyLinkage: return 12;
case GlobalValue::LinkerPrivateLinkage: return 13;
case GlobalValue::LinkerPrivateWeakLinkage: return 14;
- case GlobalValue::LinkerPrivateWeakDefAutoLinkage: return 15;
+ case GlobalValue::LinkOnceODRAutoHideLinkage: return 15;
}
+ llvm_unreachable("Invalid linkage");
}
static unsigned getEncodedVisibility(const GlobalValue *GV) {