Lang Hames 9039b591d0 [orc-rt] Add rtti header and unit tests.
The orc-rt extensible RTTI mechanism is used to provide simple dynamic RTTI
checks for orc-rt types that do not depend on standard C++ RTTI (meaning that
they will work equally well for programs compiled with -fno-rtti).
2025-08-21 18:59:46 +10:00

25 lines
803 B
C++

//===- rtti.cpp -----------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// This file is a part of the ORC runtime support library.
//
// Note:
// This source file was adapted from lib/Support/ExtensibleRTTI.cpp, however
// the data structures are not shared and the code need not be kept in sync.
//
//===----------------------------------------------------------------------===//
#include "orc-rt/rtti.h"
namespace orc_rt {
char RTTIRoot::ID = 0;
void RTTIRoot::anchor() {}
} // namespace orc_rt