about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2014-03-17 16:37:23 +0100
committerAlex Crichton <alex@alexcrichton.com>2014-03-18 13:49:09 -0700
commit8f7a7970f3f01aa2266c6ce3ee031234b86b1b9b (patch)
tree9bb133d2591d79c665262dfdcc975352e6ca83dd
parentc800c985740a0fcc2e978b346d3f3b9390850b7b (diff)
downloadrust-8f7a7970f3f01aa2266c6ce3ee031234b86b1b9b.tar.gz
rust-8f7a7970f3f01aa2266c6ce3ee031234b86b1b9b.zip
rustc: remove obsolete linkage types
Remove obsolete linkage types from the llvm::Linkage enum.  The linkage
types are no-ops and weren't used inside rustc anyway.
-rw-r--r--src/librustc/lib/llvm.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc/lib/llvm.rs b/src/librustc/lib/llvm.rs
index 8cfe08dc975..b98f3f6fd5d 100644
--- a/src/librustc/lib/llvm.rs
+++ b/src/librustc/lib/llvm.rs
@@ -43,21 +43,21 @@ pub enum Visibility {
     ProtectedVisibility = 2,
 }
 
+// This enum omits the obsolete (and no-op) linkage types DLLImportLinkage,
+// DLLExportLinkage, GhostLinkage and LinkOnceODRAutoHideLinkage.
+// LinkerPrivateLinkage and LinkerPrivateWeakLinkage are not included either;
+// they've been removed in upstream LLVM commit r203866.
 pub enum Linkage {
     ExternalLinkage = 0,
     AvailableExternallyLinkage = 1,
     LinkOnceAnyLinkage = 2,
     LinkOnceODRLinkage = 3,
-    LinkOnceODRAutoHideLinkage = 4,
     WeakAnyLinkage = 5,
     WeakODRLinkage = 6,
     AppendingLinkage = 7,
     InternalLinkage = 8,
     PrivateLinkage = 9,
-    DLLImportLinkage = 10,
-    DLLExportLinkage = 11,
     ExternalWeakLinkage = 12,
-    GhostLinkage = 13,
     CommonLinkage = 14,
 }