From b0da0ca76bcf2107d9ced15c2ac25f71ffe66183 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Fri, 25 Jan 2019 10:35:35 +0000 Subject: [PATCH] Revert r352181 as it's breaking the bots git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@352186 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Driver/ToolChains/MSP430.h | 4 ---- test/CodeGen/msp430-reloc.c | 29 ----------------------------- 2 files changed, 33 deletions(-) delete mode 100644 test/CodeGen/msp430-reloc.c diff --git a/lib/Driver/ToolChains/MSP430.h b/lib/Driver/ToolChains/MSP430.h index b5308a8dd6..61fd0e1455 100644 --- a/lib/Driver/ToolChains/MSP430.h +++ b/lib/Driver/ToolChains/MSP430.h @@ -36,10 +36,6 @@ public: llvm::opt::ArgStringList &CC1Args, Action::OffloadKind) const override; - bool isPICDefault() const override { return false; } - bool isPIEDefault() const override { return false; } - bool isPICDefaultForced() const override { return true; } - protected: Tool *buildLinker() const override; diff --git a/test/CodeGen/msp430-reloc.c b/test/CodeGen/msp430-reloc.c deleted file mode 100644 index c69e8e64af..0000000000 --- a/test/CodeGen/msp430-reloc.c +++ /dev/null @@ -1,29 +0,0 @@ -// RUN: %clang -target msp430 -fPIC -S %s -o - | FileCheck %s - -// Check the compilation does not crash as it was crashing before with "-fPIC" enabled - -void *alloca(unsigned int size); - -// CHECK: .globl foo -short foo(char** data, char encoding) -{ - char* encoding_addr = alloca(sizeof(char)); - *encoding_addr = encoding; - - char tmp3 = *encoding_addr; - short conv2 = tmp3; - short and = conv2 & 0xf; - - switch (and) - { - case 0 : - case 4 : - case 10 : - return 1; - case 11 : - return 2; - } - - return 0; -} - -- 2.40.0