mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 02:33:33 +00:00
Disallow the undocumented practice of starting the datalayout string with '-'.
Update some test cases accordingly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168516 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b46702c800
commit
834518f1ce
@ -193,9 +193,6 @@ std::string DataLayout::parseSpecifier(StringRef Desc) {
|
||||
StringRef Token = Split.first;
|
||||
Desc = Split.second;
|
||||
|
||||
if (Token.empty())
|
||||
continue;
|
||||
|
||||
Split = Token.split(':');
|
||||
StringRef Specifier = Split.first;
|
||||
Token = Split.second;
|
||||
|
@ -2,7 +2,7 @@
|
||||
; CHECK-NOT: and
|
||||
; CHECK-NOT: zext
|
||||
|
||||
target datalayout = "-p:64:64:64-n32:64"
|
||||
target datalayout = "p:64:64:64-n32:64"
|
||||
|
||||
define void @foo(double* %d, i64 %n) nounwind {
|
||||
entry:
|
||||
|
@ -8,7 +8,7 @@
|
||||
; CHECK: %q = add i64 %r, 1
|
||||
; CHECK: ret i64 %q
|
||||
|
||||
target datalayout = "-i32:8:32"
|
||||
target datalayout = "i32:8:32"
|
||||
|
||||
@A = external global i32
|
||||
@B = weak_odr global i32 0
|
||||
|
@ -1,7 +1,7 @@
|
||||
; Test that the PutsOptimizer works correctly
|
||||
; RUN: opt < %s -simplify-libcalls -S | FileCheck %s
|
||||
|
||||
target datalayout = "-p:64:64:64"
|
||||
target datalayout = "p:64:64:64"
|
||||
|
||||
@.str = private constant [1 x i8] zeroinitializer
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user