diff options
author | Petr Hosek <phosek@google.com> | 2019-09-06 18:59:43 -0700 |
---|---|---|
committer | Petr Hosek <phosek@google.com> | 2019-12-03 18:35:57 -0800 |
commit | 9c3f9b9c12b0f79b74d1d349bbac46cadaca7dbf (patch) | |
tree | 55254a5a7ec20aa87917ee1642ad09de328fd97c /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 59312cb0b81ca13f0674dde66b8e87a8d51d4dda (diff) | |
download | bcm5719-llvm-9c3f9b9c12b0f79b74d1d349bbac46cadaca7dbf.tar.gz bcm5719-llvm-9c3f9b9c12b0f79b74d1d349bbac46cadaca7dbf.zip |
[Clang] Define Fuchsia C++ABI
Currently, it is a modified version of the Itanium ABI, with the only
change being that constructors and destructors return 'this'.
Differential Revision: https://reviews.llvm.org/D70575
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 9793a5ef472..4959b80faec 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -73,6 +73,7 @@ static const char AnnotationSection[] = "llvm.metadata"; static CGCXXABI *createCXXABI(CodeGenModule &CGM) { switch (CGM.getTarget().getCXXABI().getKind()) { + case TargetCXXABI::Fuchsia: case TargetCXXABI::GenericAArch64: case TargetCXXABI::GenericARM: case TargetCXXABI::iOS: |