mirror of https://github.com/libAthena/athena.git
atdna: Be explicit about the SeekOrigin type
This commit is contained in:
parent
97ee63f0fe
commit
3ca9bcf12d
|
@ -681,13 +681,13 @@ class ATDNAEmitVisitor : public clang::RecursiveASTVisitor<ATDNAEmitVisitor> {
|
||||||
|
|
||||||
if (directionVal == 0) {
|
if (directionVal == 0) {
|
||||||
outputNodes.emplace_back(NodeType::DoSeek, std::move(fieldName),
|
outputNodes.emplace_back(NodeType::DoSeek, std::move(fieldName),
|
||||||
"<Op>("s.append(offsetExprStr).append(", athena::Begin, s)"), false);
|
"<Op>("s.append(offsetExprStr).append(", athena::SeekOrigin::Begin, s)"), false);
|
||||||
} else if (directionVal == 1) {
|
} else if (directionVal == 1) {
|
||||||
outputNodes.emplace_back(NodeType::DoSeek, std::move(fieldName),
|
outputNodes.emplace_back(NodeType::DoSeek, std::move(fieldName),
|
||||||
"<Op>("s.append(offsetExprStr).append(", athena::Current, s)"), false);
|
"<Op>("s.append(offsetExprStr).append(", athena::SeekOrigin::Current, s)"), false);
|
||||||
} else if (directionVal == 2) {
|
} else if (directionVal == 2) {
|
||||||
outputNodes.emplace_back(NodeType::DoSeek, std::move(fieldName),
|
outputNodes.emplace_back(NodeType::DoSeek, std::move(fieldName),
|
||||||
"<Op>("s.append(offsetExprStr).append(", athena::End, s)"), false);
|
"<Op>("s.append(offsetExprStr).append(", athena::SeekOrigin::End, s)"), false);
|
||||||
}
|
}
|
||||||
} else if (!tsDecl->getName().compare("Align")) {
|
} else if (!tsDecl->getName().compare("Align")) {
|
||||||
llvm::APSInt align(64, 0);
|
llvm::APSInt align(64, 0);
|
||||||
|
|
Loading…
Reference in New Issue