summaryrefslogtreecommitdiff
path: root/test/Object
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-07-22 15:11:51 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-07-22 15:11:51 +0000
commit51392a079e3285303fe815672b3db6b4cf903231 (patch)
tree38f9e498ed329ebaa2af3a329ab85d4f48756030 /test/Object
parentbb8234b7ff932e371ca11a4cb725b51958bf597d (diff)
downloadllvm-51392a079e3285303fe815672b3db6b4cf903231.tar.gz
llvm-51392a079e3285303fe815672b3db6b4cf903231.tar.bz2
llvm-51392a079e3285303fe815672b3db6b4cf903231.tar.xz
Replace archive members in the old position.
This matches gnu archive behavior and since archive member order can change which member is used, not changing the order on replacement looks like the right thing to do. This patch also refactors the logic for which archive member to keep and whether to move it to a helper function (computeInsertAction). The nesting in computeNewArchiveMembers was getting a bit confusing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186829 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Object')
-rw-r--r--test/Object/archive-replace-pos.test3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Object/archive-replace-pos.test b/test/Object/archive-replace-pos.test
index af0a30129f..0acead69a1 100644
--- a/test/Object/archive-replace-pos.test
+++ b/test/Object/archive-replace-pos.test
@@ -25,3 +25,6 @@ RUN: llvm-ar t %t.a | FileCheck --check-prefix=CHECK3 %s
CHECK3: .foo
CHECK3-NEXT: .zed
CHECK3-NEXT: .bar
+
+RUN: llvm-ar rc %t.a %t.zed
+RUN: llvm-ar t %t.a | FileCheck --check-prefix=CHECK3 %s