mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 20:26:07 +00:00
Push LLVMContexts through the IntegerType APIs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78948 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -16,7 +16,7 @@ namespace llvm {
|
||||
namespace {
|
||||
|
||||
TEST(ConstantsTest, Integer_i1) {
|
||||
const IntegerType* Int1 = IntegerType::get(1);
|
||||
const IntegerType* Int1 = IntegerType::get(getGlobalContext(), 1);
|
||||
Constant* One = ConstantInt::get(Int1, 1, true);
|
||||
Constant* Zero = ConstantInt::get(Int1, 0);
|
||||
Constant* NegOne = ConstantInt::get(Int1, static_cast<uint64_t>(-1), true);
|
||||
@@ -97,7 +97,7 @@ TEST(ConstantsTest, Integer_i1) {
|
||||
}
|
||||
|
||||
TEST(ConstantsTest, IntSigns) {
|
||||
const IntegerType* Int8Ty = Type::Int8Ty;
|
||||
const IntegerType* Int8Ty = Type::getInt8Ty(getGlobalContext());
|
||||
EXPECT_EQ(100, ConstantInt::get(Int8Ty, 100, false)->getSExtValue());
|
||||
EXPECT_EQ(100, ConstantInt::get(Int8Ty, 100, true)->getSExtValue());
|
||||
EXPECT_EQ(100, ConstantInt::getSigned(Int8Ty, 100)->getSExtValue());
|
||||
|
Reference in New Issue
Block a user