Skip to content

Commit 4cc180e

Browse files
committed
cleanup
1 parent 7382ec9 commit 4cc180e

File tree

3 files changed

+0
-10
lines changed

3 files changed

+0
-10
lines changed

llvm/lib/Bitcode/Reader/BitcodeReader.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2244,10 +2244,6 @@ static Attribute::AttrKind getAttrFromCode(uint64_t Code) {
22442244
return Attribute::NoExt;
22452245
case bitc::ATTR_KIND_CAPTURES:
22462246
return Attribute::Captures;
2247-
// case bitc::ATTR_KIND_ALLOW_DIRECT_ACCESS_IN_HOT_PATCH_FUNCTION:
2248-
// return Attribute::AllowDirectAccessInHotPatchFunction;
2249-
// case bitc::ATTR_KIND_MARKED_FOR_WINDOWS_SECURE_HOT_PATCHING:
2250-
// return Attribute::MarkedForWindowsSecureHotPatching;
22512247
}
22522248
}
22532249

llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -938,10 +938,6 @@ static uint64_t getAttrKindEncoding(Attribute::AttrKind Kind) {
938938
return bitc::ATTR_KIND_NO_EXT;
939939
case Attribute::Captures:
940940
return bitc::ATTR_KIND_CAPTURES;
941-
// case Attribute::AllowDirectAccessInHotPatchFunction:
942-
// return bitc::ATTR_KIND_ALLOW_DIRECT_ACCESS_IN_HOT_PATCH_FUNCTION;
943-
// case Attribute::MarkedForWindowsSecureHotPatching:
944-
// return bitc::ATTR_KIND_MARKED_FOR_WINDOWS_SECURE_HOT_PATCHING;
945941
case Attribute::EndAttrKinds:
946942
llvm_unreachable("Can not encode end-attribute kinds marker.");
947943
case Attribute::None:

llvm/lib/Transforms/Utils/CodeExtractor.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -933,8 +933,6 @@ Function *CodeExtractor::constructFunctionDeclaration(
933933
case Attribute::CoroDestroyOnlyWhenComplete:
934934
case Attribute::CoroElideSafe:
935935
case Attribute::NoDivergenceSource:
936-
// case Attribute::MarkedForWindowsSecureHotPatching:
937-
// case Attribute::AllowDirectAccessInHotPatchFunction:
938936
continue;
939937
// Those attributes should be safe to propagate to the extracted function.
940938
case Attribute::AlwaysInline:

0 commit comments

Comments
 (0)