mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-18 11:24:01 +00:00
Whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209105 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -28,7 +28,7 @@ namespace llvm {
|
||||
virtual void anchor(); // Out of line method.
|
||||
public:
|
||||
virtual ~ValueMapTypeRemapper() {}
|
||||
|
||||
|
||||
/// remapType - The client should implement this method if they want to
|
||||
/// remap types while mapping values.
|
||||
virtual Type *remapType(Type *SrcTy) = 0;
|
||||
@ -46,26 +46,26 @@ namespace llvm {
|
||||
/// lazily.
|
||||
virtual Value *materializeValueFor(Value *V) = 0;
|
||||
};
|
||||
|
||||
|
||||
/// RemapFlags - These are flags that the value mapping APIs allow.
|
||||
enum RemapFlags {
|
||||
RF_None = 0,
|
||||
|
||||
|
||||
/// RF_NoModuleLevelChanges - If this flag is set, the remapper knows that
|
||||
/// only local values within a function (such as an instruction or argument)
|
||||
/// are mapped, not global values like functions and global metadata.
|
||||
RF_NoModuleLevelChanges = 1,
|
||||
|
||||
|
||||
/// RF_IgnoreMissingEntries - If this flag is set, the remapper ignores
|
||||
/// entries that are not in the value map. If it is unset, it aborts if an
|
||||
/// operand is asked to be remapped which doesn't exist in the mapping.
|
||||
RF_IgnoreMissingEntries = 2
|
||||
};
|
||||
|
||||
|
||||
static inline RemapFlags operator|(RemapFlags LHS, RemapFlags RHS) {
|
||||
return RemapFlags(unsigned(LHS)|unsigned(RHS));
|
||||
}
|
||||
|
||||
|
||||
Value *MapValue(const Value *V, ValueToValueMapTy &VM,
|
||||
RemapFlags Flags = RF_None,
|
||||
ValueMapTypeRemapper *TypeMapper = nullptr,
|
||||
@ -75,7 +75,7 @@ namespace llvm {
|
||||
RemapFlags Flags = RF_None,
|
||||
ValueMapTypeRemapper *TypeMapper = nullptr,
|
||||
ValueMaterializer *Materializer = nullptr);
|
||||
|
||||
|
||||
/// MapValue - provide versions that preserve type safety for MDNode and
|
||||
/// Constants.
|
||||
inline MDNode *MapValue(const MDNode *V, ValueToValueMapTy &VM,
|
||||
@ -92,7 +92,7 @@ namespace llvm {
|
||||
return cast<Constant>(MapValue((const Value*)V, VM, Flags, TypeMapper,
|
||||
Materializer));
|
||||
}
|
||||
|
||||
|
||||
|
||||
} // End llvm namespace
|
||||
|
||||
|
Reference in New Issue
Block a user