diff options
author | Peixin Qiao <qiaopeixin@huawei.com> | 2022-10-02 17:45:03 +0800 |
---|---|---|
committer | Peixin Qiao <qiaopeixin@huawei.com> | 2022-10-02 17:45:03 +0800 |
commit | 3f0ad8558aa5f92387831662130b0124596ad6ad (patch) | |
tree | cd815b1827cd686dedeb1cae13146edc6f626fc0 /flang/tools | |
parent | 6f46ff3765dcdc178b9cf52ebd8c03437806798a (diff) | |
download | llvm-3f0ad8558aa5f92387831662130b0124596ad6ad.tar.gz |
Revert "[flang] Make real type of kind 10 target dependent"
This reverts commit d11e406e369fc90be5e2e2a0798ea7b7d2625882.
Diffstat (limited to 'flang/tools')
-rw-r--r-- | flang/tools/bbc/bbc.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/flang/tools/bbc/bbc.cpp b/flang/tools/bbc/bbc.cpp index ec778a423a6d..133da66b7355 100644 --- a/flang/tools/bbc/bbc.cpp +++ b/flang/tools/bbc/bbc.cpp @@ -47,12 +47,10 @@ #include "mlir/Pass/PassRegistry.h" #include "mlir/Transforms/GreedyPatternRewriteDriver.h" #include "mlir/Transforms/Passes.h" -#include "llvm/ADT/Triple.h" #include "llvm/Passes/OptimizationLevel.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/ErrorOr.h" #include "llvm/Support/FileSystem.h" -#include "llvm/Support/Host.h" #include "llvm/Support/InitLLVM.h" #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/Path.h" @@ -333,15 +331,6 @@ int main(int argc, char **argv) { .set_warnOnNonstandardUsage(warnStdViolation) .set_warningsAreErrors(warnIsError); - llvm::Triple targetTriple{llvm::Triple( - llvm::Triple::normalize(llvm::sys::getDefaultTargetTriple()))}; - // FIXME: Handle real(3) ? - if (targetTriple.getArch() != llvm::Triple::ArchType::x86 && - targetTriple.getArch() != llvm::Triple::ArchType::x86_64) { - semanticsContext.targetCharacteristics().DisableType( - Fortran::common::TypeCategory::Real, /*kind=*/10); - } - return mlir::failed(convertFortranSourceToMLIR( inputFilename, options, programPrefix, semanticsContext, passPipe)); } |