summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MIRParser/MIParser.cpp
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2015-08-14 21:08:30 +0000
committerAlex Lorenz <arphaman@gmail.com>2015-08-14 21:08:30 +0000
commit50b826fb7503be5e9eafbd11569c195f5e307108 (patch)
tree2bdd050184831f19866e4bfeda501b3083b2fd6a /llvm/lib/CodeGen/MIRParser/MIParser.cpp
parente5d74caf2a5826ba2fcf3449554b5d03b24c6cf1 (diff)
downloadbcm5719-llvm-50b826fb7503be5e9eafbd11569c195f5e307108.tar.gz
bcm5719-llvm-50b826fb7503be5e9eafbd11569c195f5e307108.zip
MIR Serialization: Serialize the global value call entry pseudo source values.
llvm-svn: 245097
Diffstat (limited to 'llvm/lib/CodeGen/MIRParser/MIParser.cpp')
-rw-r--r--llvm/lib/CodeGen/MIRParser/MIParser.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MIRParser/MIParser.cpp b/llvm/lib/CodeGen/MIRParser/MIParser.cpp
index 7984116efcb..31046b91cf8 100644
--- a/llvm/lib/CodeGen/MIRParser/MIParser.cpp
+++ b/llvm/lib/CodeGen/MIRParser/MIParser.cpp
@@ -1437,6 +1437,14 @@ bool MIParser::parseMemoryPseudoSourceValue(const PseudoSourceValue *&PSV) {
// The token was already consumed, so use return here instead of break.
return false;
}
+ case MIToken::GlobalValue:
+ case MIToken::NamedGlobalValue: {
+ GlobalValue *GV = nullptr;
+ if (parseGlobalValue(GV))
+ return true;
+ PSV = MF.getPSVManager().getGlobalValueCallEntry(GV);
+ break;
+ }
// TODO: Parse the other pseudo source values.
default:
llvm_unreachable("The current token should be pseudo source value");
@@ -1448,7 +1456,8 @@ bool MIParser::parseMemoryPseudoSourceValue(const PseudoSourceValue *&PSV) {
bool MIParser::parseMachinePointerInfo(MachinePointerInfo &Dest) {
if (Token.is(MIToken::kw_constant_pool) || Token.is(MIToken::kw_stack) ||
Token.is(MIToken::kw_got) || Token.is(MIToken::kw_jump_table) ||
- Token.is(MIToken::FixedStackObject)) {
+ Token.is(MIToken::FixedStackObject) || Token.is(MIToken::GlobalValue) ||
+ Token.is(MIToken::NamedGlobalValue)) {
const PseudoSourceValue *PSV = nullptr;
if (parseMemoryPseudoSourceValue(PSV))
return true;
OpenPOWER on IntegriCloud