From cfca06d7963fa0909f90483b42a6d7d194d01e08 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 26 Jul 2020 19:36:28 +0000 Subject: Vendor import of llvm-project master 2e10b7a39b9, the last commit before the llvmorg-12-init tag, from which release/11.x was branched. --- clang/lib/Basic/XRayInstr.cpp | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'clang/lib/Basic/XRayInstr.cpp') diff --git a/clang/lib/Basic/XRayInstr.cpp b/clang/lib/Basic/XRayInstr.cpp index ef2470f67200..79052e05860e 100644 --- a/clang/lib/Basic/XRayInstr.cpp +++ b/clang/lib/Basic/XRayInstr.cpp @@ -16,13 +16,17 @@ namespace clang { XRayInstrMask parseXRayInstrValue(StringRef Value) { - XRayInstrMask ParsedKind = llvm::StringSwitch(Value) - .Case("all", XRayInstrKind::All) - .Case("custom", XRayInstrKind::Custom) - .Case("function", XRayInstrKind::Function) - .Case("typed", XRayInstrKind::Typed) - .Case("none", XRayInstrKind::None) - .Default(XRayInstrKind::None); + XRayInstrMask ParsedKind = + llvm::StringSwitch(Value) + .Case("all", XRayInstrKind::All) + .Case("custom", XRayInstrKind::Custom) + .Case("function", + XRayInstrKind::FunctionEntry | XRayInstrKind::FunctionExit) + .Case("function-entry", XRayInstrKind::FunctionEntry) + .Case("function-exit", XRayInstrKind::FunctionExit) + .Case("typed", XRayInstrKind::Typed) + .Case("none", XRayInstrKind::None) + .Default(XRayInstrKind::None); return ParsedKind; } -- cgit v1.2.3