diff options
author | Alex Lorenz <arphaman@gmail.com> | 2015-08-11 22:32:00 +0000 |
---|---|---|
committer | Alex Lorenz <arphaman@gmail.com> | 2015-08-11 22:32:00 +0000 |
commit | c49e4fe9ccff7587a271d5c17ecad130d2dea201 (patch) | |
tree | 0f2669c19c0fa1cb5d9f26c2e2395ef0800c0fea /llvm/lib/Target/Mips/MipsMachineFunction.cpp | |
parent | bceefe85c6ce2233301ef982c94e20b632cf5bb4 (diff) | |
download | llvm-c49e4fe9ccff7587a271d5c17ecad130d2dea201.zip llvm-c49e4fe9ccff7587a271d5c17ecad130d2dea201.tar.gz llvm-c49e4fe9ccff7587a271d5c17ecad130d2dea201.tar.bz2 |
PseudoSourceValue: Introduce a 'PSVKind' enumerator.
This commit introduces a new enumerator named 'PSVKind' in the
'PseudoSourceValue' class. This enumerator is now used to distinguish between
the various kinds of pseudo source values.
This change is done in preparation for the changes to the pseudo source value
object management and to the PseudoSourceValue's class hierarchy - the next two
PseudoSourceValue commits will get rid of the global variable that manages the
pseudo source values and the mips specific MipsCallEntry subclass.
Reviewers: Akira Hatanaka
llvm-svn: 244687
Diffstat (limited to 'llvm/lib/Target/Mips/MipsMachineFunction.cpp')
-rw-r--r-- | llvm/lib/Target/Mips/MipsMachineFunction.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/Mips/MipsMachineFunction.cpp b/llvm/lib/Target/Mips/MipsMachineFunction.cpp index 0d1ee04..ebc5ac0 100644 --- a/llvm/lib/Target/Mips/MipsMachineFunction.cpp +++ b/llvm/lib/Target/Mips/MipsMachineFunction.cpp @@ -25,14 +25,15 @@ FixGlobalBaseReg("mips-fix-global-base-reg", cl::Hidden, cl::init(true), cl::desc("Always use $gp as the global base register.")); // class MipsCallEntry. -MipsCallEntry::MipsCallEntry(StringRef N) { +MipsCallEntry::MipsCallEntry(StringRef N) : PseudoSourceValue(MipsPSV) { #ifndef NDEBUG Name = N; Val = nullptr; #endif } -MipsCallEntry::MipsCallEntry(const GlobalValue *V) { +MipsCallEntry::MipsCallEntry(const GlobalValue *V) + : PseudoSourceValue(MipsPSV) { #ifndef NDEBUG Val = V; #endif |