//===-- llvm/GlobalValue.h - Class to represent a global value --*- C++ -*-===// // // 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 common base class of all globally definable objects. As such, // it is subclassed by GlobalVariable, GlobalAlias and by Function. This is // used because you can do certain things with these global objects that you // can't do to anything else. For example, use the address of one as a // constant. // //===----------------------------------------------------------------------===// #ifndef LLVM_IR_GLOBALVALUE_H #define LLVM_IR_GLOBALVALUE_H #include "llvm/ADT/StringRef.h" #include "llvm/ADT/Twine.h" #include "llvm/IR/Constant.h" #include "llvm/IR/DerivedTypes.h" #include "llvm/IR/Value.h" #include "llvm/Support/Casting.h" #include "llvm/Support/ErrorHandling.h" #include <cassert> #include <cstdint> #include <string> namespace llvm { class Comdat; class ConstantRange; class DataLayout; class Error; class GlobalObject; class Module; namespace Intrinsic { ID; } // end namespace Intrinsic // Choose ';' as the delimiter. ':' was used once but it doesn't work well for // Objective-C functions which commonly have :'s in their names. inline constexpr char GlobalIdentifierDelimiter = …; class GlobalValue : public Constant { … }; } // end namespace llvm #endif // LLVM_IR_GLOBALVALUE_H