mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-23 17:32:49 +00:00
28 lines
743 B
C++
28 lines
743 B
C++
|
//===- ValueMapper.cpp - Unit tests for ValueMapper -----------------------===//
|
||
|
//
|
||
|
// The LLVM Compiler Infrastructure
|
||
|
//
|
||
|
// This file is distributed under the University of Illinois Open Source
|
||
|
// License. See LICENSE.TXT for details.
|
||
|
//
|
||
|
//===----------------------------------------------------------------------===//
|
||
|
|
||
|
#include "llvm/IR/LLVMContext.h"
|
||
|
#include "llvm/IR/Metadata.h"
|
||
|
#include "llvm/Transforms/Utils/ValueMapper.h"
|
||
|
#include "gtest/gtest.h"
|
||
|
|
||
|
using namespace llvm;
|
||
|
|
||
|
namespace {
|
||
|
|
||
|
TEST(ValueMapperTest, MapMetadataUnresolved) {
|
||
|
LLVMContext Context;
|
||
|
TempMDTuple T = MDTuple::getTemporary(Context, None);
|
||
|
|
||
|
ValueToValueMapTy VM;
|
||
|
EXPECT_EQ(T.get(), MapMetadata(T.get(), VM, RF_NoModuleLevelChanges));
|
||
|
}
|
||
|
|
||
|
}
|