From 51392a079e3285303fe815672b3db6b4cf903231 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Mon, 22 Jul 2013 15:11:51 +0000 Subject: 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 --- test/Object/archive-replace-pos.test | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/Object') 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 -- cgit v1.2.3